SourceAdapter: {
    allowMetadataWithContent(): boolean;
    getComponent(fsPath: string, isResolvingSource?: boolean): undefined | SourceComponent;
}

Infers the source format structure of a metadata component when given a file path.

Type declaration

  • allowMetadataWithContent:function
    • Whether the adapter allows content-only metadata definitions.

      Returns boolean

  • getComponent:function
    • Create a metadata component object from a file path.

      Parameters

      • fsPath: string

        Path to resolve

      • OptionalisResolvingSource: boolean

        Whether the path to resolve is a single file

      Returns undefined | SourceComponent