@aws-northstar/ui
Version:
NorthStar Design System v2
11 lines (10 loc) • 389 B
TypeScript
import fetch from 'cross-fetch';
import { Provider, AwsCredentialIdentity } from '@aws-sdk/types';
type SignedFetcherInit = {
service: string;
region?: string;
credentials: AwsCredentialIdentity | Provider<AwsCredentialIdentity>;
};
type CreateSignedFetcher = (init: SignedFetcherInit) => typeof fetch;
export declare const createSignedFetcher: CreateSignedFetcher;
export {};