UNPKG

@inlang/paraglide-js

Version:

[![NPM Downloads](https://img.shields.io/npm/dw/%40inlang%2Fparaglide-js?logo=npm&logoColor=red&label=npm%20downloads)](https://www.npmjs.com/package/@inlang/paraglide-js) [![GitHub Issues](https://img.shields.io/github/issues-closed/opral/paraglide-js?lo

22 lines 743 B
import type { InputVariable } from "@inlang/sdk"; export type InputMatchTypes = Map<string, { literals: Set<string>; hasCatchAll: boolean; }>; export declare function jsDocBundleFunctionTypes(args: { inputs: InputVariable[]; locales: string[]; matchTypes?: InputMatchTypes; inputTypeOverride?: string; }): string; /** * Returns the types for the input variables. * * @example * const inputs = [{ name: "age" }] * inputsType(inputs) * >> "{ age: NonNullable<unknown> }" */ export declare function inputsType(inputs: InputVariable[], matchTypes?: InputMatchTypes): string; export declare function inputTypeForName(name: string, matchTypes?: InputMatchTypes): string; //# sourceMappingURL=jsdoc-types.d.ts.map