@forge/api
7.2.2-experimental-04cc2b98.0.0-next.0
out/api/permissions.d.ts~
out/api/permissions.d.tsModified+5−5
Index: package/out/api/permissions.d.ts
===================================================================
--- package/out/api/permissions.d.ts
+++ package/out/api/permissions.d.ts
@@ -1,11 +1,11 @@
import { PermissionRequirements, MissingPermissions } from './runtime';
import { External, Fetch } from '@forge/manifest';
declare const RESOURCE_TYPES: readonly ["fonts", "styles", "frames", "images", "media", "scripts"];
-export type ResourceType = (typeof RESOURCE_TYPES)[number];
+export declare type ResourceType = (typeof RESOURCE_TYPES)[number];
declare const FETCH_TYPES: readonly ["backend", "client"];
-export type FetchType = (typeof FETCH_TYPES)[number];
-export type ValidatedArrayField = string[] | External[ResourceType] | Fetch[FetchType];
+export declare type FetchType = (typeof FETCH_TYPES)[number];
+export declare type ValidatedArrayField = string[] | External[ResourceType] | Fetch[FetchType];
export declare function extractUrlString(url: string | {
address: string;
} | {
remote: string;
@@ -18,12 +18,12 @@
}
export declare const hasPermission: (requirements: Partial<PermissionRequirements>) => PermissionResult;
export declare const hasScope: (scope: string) => boolean;
export declare const canFetchFrom: (type: FetchType, url: string) => boolean;
-export declare const canLoadResource: (type: Exclude<keyof External, "fetch">, url: string) => boolean;
+export declare const canLoadResource: (type: Exclude<keyof External, 'fetch'>, url: string) => boolean;
export declare const permissions: {
hasPermission: (requirements: Partial<PermissionRequirements>) => PermissionResult;
hasScope: (scope: string) => boolean;
canFetchFrom: (type: FetchType, url: string) => boolean;
- canLoadResource: (type: Exclude<keyof External, "fetch">, url: string) => boolean;
+ canLoadResource: (type: Exclude<keyof External, 'fetch'>, url: string) => boolean;
};
//# sourceMappingURL=permissions.d.ts.map
\ No newline at end of file