farrow-api
Advanced tools
Comparing version
@@ -169,3 +169,3 @@ "use strict"; | ||
typeDeclarations.push("\nexport type ApiClientLoaderInput = {\n path: string[]\n input: JsonType\n}\n".trim()); | ||
typeDeclarations.push("\nexport interface ApiClientLoaderOptions {\n batch?: boolean\n stream?: boolean\n cache?: boolean\n}\n".trim()); | ||
typeDeclarations.push("\ndeclare global {\n interface ApiClientLoaderOptions {}\n}\n".trim()); | ||
typeDeclarations.push("\nexport type ApiClientOptions = {\n loader: (input: ApiClientLoaderInput, options?: ApiClientLoaderOptions) => Promise<JsonType>\n}\n".trim()); | ||
@@ -172,0 +172,0 @@ var handleApi_1 = function (api, path) { |
{ | ||
"name": "farrow-api", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A type-friendly BFF framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -282,6 +282,4 @@ import { FormatFields, FormatType, FormatTypes, isNamedFormatType } from 'farrow-schema/formatter' | ||
` | ||
export interface ApiClientLoaderOptions { | ||
batch?: boolean | ||
stream?: boolean | ||
cache?: boolean | ||
declare global { | ||
interface ApiClientLoaderOptions {} | ||
} | ||
@@ -362,3 +360,3 @@ `.trim(), | ||
let source = [ | ||
const source = [ | ||
PREFIX_COMMENT, | ||
@@ -365,0 +363,0 @@ getNoCheck(), |
Sorry, the diff of this file is not supported yet
72308
-0.12%1397
-0.14%