Sanity Library Reference Docs
    Preparing search index...

    Interface ResourcesApi

    interface ResourcesApi {
        "[iterator]"(): IterableIterator<BlueprintResource<string>>;
        all(): BlueprintResource<string>[];
        cors(name: string): BlueprintResource<string> | undefined;
        dataset(name: string): BlueprintResource<string> | undefined;
        function(
            name: string,
        ): BlueprintResource<`sanity.function.${string}`> | undefined;
        project(name: string): BlueprintResource<string> | undefined;
        role(name: string): BlueprintResource<string> | undefined;
        webhook(name: string): BlueprintResource<string> | undefined;
        (name: string): BlueprintResource<string> | undefined;
    }
    Index

    Methods