@salesforce/source-deploy-retrieve
    Preparing search index...

    Type Alias SourceAdapter

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

    type SourceAdapter = {
        allowMetadataWithContent(): boolean;
        getComponent(
            fsPath: string,
            isResolvingSource?: boolean,
        ): SourceComponent | undefined;
    }
    Index
    • Whether the adapter allows content-only metadata definitions.

      Returns boolean

    • 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 SourceComponent | undefined