Type aliasSDK v0.2.1

DocumentSurface

Extract document templates from a project's templates.

import type { DocumentSurface } from '@usepapier/client/base';

Declaration #

surfaces.tsTypeScript
export type DocumentSurface<TTemplates extends Record<string, {
    type: string;
}>, TPayloadMap extends Record<string, any>> = {
    [K in keyof TTemplates as TTemplates[K] extends {
        type: "document";
    } ? KebabToCamelCase<K & string> : never]: DocumentTemplateMethods<K extends keyof TPayloadMap ? TPayloadMap[K] : any>;
};

Source: packages/client/src/core/surfaces.ts:157

Generated from TypeScript source.d65ea8f71fbf