validateCanvasManifest
Checks that a value is a well-formed plugin manifest, throwing with a message naming the first problem.
@internote/canvas-sdkOn this page
import { validateCanvasManifest } from '@internote/canvas-sdk';Requires id, name and version as non-empty strings, a chalk.environment, and a runtime that is module or worker when given. Narrows the value's type on success.
#Signature
(m: unknown): asserts m is CanvasPluginManifest#Parameters
mThe value to check, such as parsed JSON.
Declared in packages/canvas-sdk/src/plugin/manifest.ts:78.