From 4d7315c73fc0aa89b59a6884661940161a29876e Mon Sep 17 00:00:00 2001 From: Vlad Pronsky Date: Tue, 16 Jan 2024 23:48:09 +0200 Subject: [PATCH] v0.1.2: make apigen interfaces public to allow override it --- package.json | 2 +- src/_template.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 24a2815..8871b00 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "apigen-ts", - "version": "0.1.1", + "version": "0.1.2", "license": "MIT", "author": "Vlad Pronsky ", "repository": "vladkens/apigen-ts", diff --git a/src/_template.ts b/src/_template.ts index d797a29..540c0f8 100644 --- a/src/_template.ts +++ b/src/_template.ts @@ -1,11 +1,11 @@ // Note: Use uppercase for names in ApiClient to avoid conflict with the generated code -interface ApigenConfig { +export interface ApigenConfig { baseUrl: string headers: Record } -interface ApigenRequest extends Omit { +export interface ApigenRequest extends Omit { search?: Record body?: unknown }