derive
const derive: ( ...args: [ plugin: Omit< Definition<any, any, any>, "~@graftland/graft/Plugin/Contract" > & { "~@graftland/graft/Plugin/Contract": unknown }, declarations: readonly Declaration[], ]) => Effect< { operations: { artifact: { algorithm: "sha256" digest: string version: 1 } identity: string package: { name: string version: string } }[] services: { implements: readonly { key: string operations: readonly string[] }[] optional: readonly { key: string operations: readonly string[] }[] required: readonly { key: string operations: readonly string[] }[] } }, ManifestError, never>Defined in: Manifest.ts:157
Resolves service keys through contract declarations without running the plugin.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[plugin: Omit<Definition<any, any, any>, "~@graftland/graft/Plugin/Contract"> & { "~@graftland/graft/Plugin/Contract": unknown; }, declarations: readonly Declaration[]] |
Returns
Section titled “Returns”Effect<{ operations: { artifact: { algorithm: "sha256"; digest:
string; version: 1; }; identity: string; package: { name:
string; version: string; }; }[]; services: { implements: readonly
{ key: string; operations: readonly string[]; }[]; optional:
readonly { key: string; operations: readonly string[]; }[];
required: readonly { key: string; operations: readonly string[];
}[]; }; },
ManifestError, never>