@forge/bridge
6.0.0-next.36.0.0-next.4
out/types.d.ts~
out/types.d.tsModified+16−16
Index: package/out/types.d.ts
===================================================================
--- package/out/types.d.ts
+++ package/out/types.d.ts
@@ -1,52 +1,52 @@
import { type ForgeSupportedLocaleCode } from '@forge/i18n';
import { type ThemeState } from '@atlaskit/tokens';
import { type Scopes, type External } from '@forge/manifest';
-export declare type InvokePayload = {
+export type InvokePayload = {
[key in number | string]: any;
};
-export declare type InvokeResponseBody = Record<string, any> | void;
-export declare type RateLimitProperties = {
+export type InvokeResponseBody = Record<string, any> | void;
+export type RateLimitProperties = {
rateLimitRemaining?: number;
rateLimitReset?: number;
rateLimitLimit?: number;
};
-declare type InvokeMetadataDefinition = {
+type InvokeMetadataDefinition = {
rateLimitProperties: {
request: boolean;
response: RateLimitProperties;
};
};
-export declare type InvokeMetadata = {
+export type InvokeMetadata = {
[K in keyof InvokeMetadataDefinition]?: InvokeMetadataDefinition[K]['request'];
};
-export declare type InvokeResponseMetadata = {
+export type InvokeResponseMetadata = {
[K in keyof InvokeMetadataDefinition]?: InvokeMetadataDefinition[K]['response'];
};
-export declare type InvokeResponseWithMetadata<T = InvokeResponseBody> = {
+export type InvokeResponseWithMetadata<T = InvokeResponseBody> = {
body: T;
metadata?: InvokeResponseMetadata;
};
-export declare type InvokeResponse<T = InvokeResponseBody> = T | InvokeResponseWithMetadata<T>;
-declare type FetchResponse = {
+export type InvokeResponse<T = InvokeResponseBody> = T | InvokeResponseWithMetadata<T>;
+type FetchResponse = {
body?: string;
headers: {
[key: string]: string;
};
isAttachment?: boolean;
} & Pick<ResponseInit, 'status' | 'statusText'>;
-export declare type ProductFetchResponse = FetchResponse;
-export declare type RemoteFetchResponse = FetchResponse;
+export type ProductFetchResponse = FetchResponse;
+export type RemoteFetchResponse = FetchResponse;
export declare enum ExtensionEnvironment {
DEVELOPMENT = "DEVELOPMENT",
STAGING = "STAGING",
PRODUCTION = "PRODUCTION"
}
-declare type UserAccessDetails = {
+type UserAccessDetails = {
enabled: boolean;
hasAccess: boolean;
};
-export declare type EnvironmentType = keyof typeof ExtensionEnvironment;
+export type EnvironmentType = keyof typeof ExtensionEnvironment;
export interface FullContext {
accountId?: string;
cloudId?: string;
workspaceId?: string;
@@ -81,9 +81,9 @@
trialEndDate: string | null;
type: string;
modes: [EcosystemLicenseMode] | null;
}
-export declare type Subscription = {
+export type Subscription = {
unsubscribe: () => void;
};
/**
* Runtime representation of app permissions that extends the manifest schema.
@@ -94,8 +94,8 @@
export interface RuntimePermissions {
scopes?: Scopes;
external?: External;
}
-export declare type ForgeRequestInit = Omit<RequestInit, 'signal'>;
-export declare type FetchType = 'remote' | 'product';
+export type ForgeRequestInit = Omit<RequestInit, 'signal'>;
+export type FetchType = 'remote' | 'product';
export {};
//# sourceMappingURL=types.d.ts.map
\ No newline at end of file