docs: make technical prose concrete
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
* current entries. Package verdicts and imported manifests are cached per
|
||||
* package name and never expire — plugin-set changes take effect on restart.
|
||||
*
|
||||
* Manual `ctx.typert.register()` remains the escape hatch for contributions
|
||||
* that do not ride a `./typert` artifact (hand-written contract schemas,
|
||||
* Manual `ctx.typert.register()` remains available for contributions
|
||||
* that do not use a `./typert` artifact (hand-written wire schemas,
|
||||
* tests, non-loader compositions).
|
||||
*
|
||||
* @module @deepseek-ai/dsh-typert-loader
|
||||
@@ -68,7 +68,7 @@ function typertExportOf(pkgName: string, exportsField: unknown): string | undefi
|
||||
const fallback = (target as Record<string, unknown>).default
|
||||
if (typeof fallback === 'string') return fallback
|
||||
}
|
||||
throw new Error(`typert-loader: ${pkgName} exports["${TYPERT_HOST_EXPORT}"] has an unsupported shape`)
|
||||
throw new Error(`typert-loader: ${pkgName} exports["${TYPERT_HOST_EXPORT}"] must be a string or an object with a string default`)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -356,7 +356,7 @@ describe('typert loader', () => {
|
||||
await ctx.loader.create({ name: '@fixture/export-primitive' })
|
||||
await ctx.loader.await()
|
||||
|
||||
await expect(mountTypertLoader(ctx)).rejects.toThrow('unsupported shape')
|
||||
await expect(mountTypertLoader(ctx)).rejects.toThrow('must be a string or an object with a string default')
|
||||
})
|
||||
|
||||
it('caches a negative verdict for loader entries without a package root', LOADER_TEST_TIMEOUT, async () => {
|
||||
|
||||
Reference in New Issue
Block a user