write
此内容尚不支持你的语言。
const write: (...args: [directory: string]) => Effect< { engines: { node: string } graft: { entries: Record< string, { contracts: readonly string[] implementation: string operations: readonly { artifact: { algorithm: "sha256" digest: string version: 1 } identity: string package: { name: string version: string } }[] probes: readonly string[] requirements: { filesystem: boolean nativeModules: boolean placements: readonly ("Host" | "Worker" | "Local")[] } services: { implements: readonly { key: string operations: readonly string[] }[] optional: readonly { key: string operations: readonly string[] }[] required: readonly { key: string operations: readonly string[] }[] } } > version: 1 } name: string peerDependencies: { "@graftland/graft": string effect: string } version: string }, PlatformError | SchemaError | PublicationError, FileSystem | Path>Defined in: Publication.ts:137
Writes only after every entry was successfully derived.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[directory: string] |
Returns
Section titled “Returns”Effect<{ engines: { node: string; }; graft: { entries:
Record<string, { contracts: readonly string[]; implementation:
string; operations: readonly { artifact: { algorithm: "sha256";
digest: string; version: 1; }; identity: string; package: {
name: string; version: string; }; }[]; probes: readonly string[];
requirements: { filesystem: boolean; nativeModules: boolean;
placements: readonly ("Host" | "Worker" | "Local")[]; }; services:
{ implements: readonly { key: string; operations: readonly string[];
}[]; optional: readonly { key: string; operations: readonly
string[]; }[]; required: readonly { key: string; operations:
readonly string[]; }[]; }; }>; version: 1; }; name: string;
peerDependencies: { "@graftland/graft": string; effect: string; };
version: string; }, | PlatformError | SchemaError |
PublicationError,
FileSystem | Path>