loadConfigFromContent
loadConfigFromContent<
T>(opts):Promise<Loaded<T>>
Defined in: cli/datapad/src/load-config-from-content/load-config-from-content.ts:18
Load config from content that didn’t come from a file already on disk —
writes it to <dir>/<name>.config.<extension> first, then loads it
through the exact same path loadConfigFile uses for a file it
discovered itself. Exists because sourcing config content from somewhere
other than the local filesystem (a GitHub API fetch, for one — see
@theholocron/sentinel) doesn’t change what loading it correctly means:
a .ts config still needs real module resolution, defineConfig import
included, not a re-implemented parser.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<Loaded<T>>