What a name holds in a loader: what it binds there, or else a name of the route's own file.
(name: string, scope: LoaderScope)
| 1869 | |
| 1870 | /** What a name holds in a loader: what it binds there, or else a name of the route's own file. */ |
| 1871 | function nameValue(name: string, scope: LoaderScope): Loaded | null { |
| 1872 | return scope.has(name) ? scope.get(name) ?? null : { kind: 'name', name }; |
| 1873 | } |
| 1874 | |
| 1875 | /** A property of a value: an export of a module, or what an object literal holds under `key`. */ |
| 1876 | function memberOf(value: Loaded | null, key: string): Loaded | null { |
no test coverage detected