Interface ManifestContributionInfo<TM, TS>

Information for a contribution point whose contributions have one or more entries the extension's JSON manifest manifest/contributes/${contribPoint.id}.

The format of such entries must follow the contribution point's JSON Schema given by its schema property.

This is an optional part of a ContributionPoint.

interface ManifestContributionInfo<TM, TS> {
    processEntry?: ((entry) => TS);
    schema: AnySchema | JsonTypedSchema<TM>;
}

Type Parameters

  • TM = unknown

    Type of JSON entry in manifest

  • TS = TM

    Type of contribution in framework store

Properties

processEntry?: ((entry) => TS)

Optional function used to process JSON entries from the manifest to entries in the framework store. Defaults to the identity function.

Type declaration

    • (entry): TS
    • Optional function used to process JSON entries from the manifest to entries in the framework store. Defaults to the identity function.

      Parameters

      • entry: TM

        A JSON entry from the manifest.

      Returns TS

      An entry for the framework store.

Param: entry

A JSON entry from the manifest.

Returns

An entry for the framework store.

schema: AnySchema | JsonTypedSchema<TM>

JSON schema used to validate JSON entries from the manifest.

Generated using TypeDoc