From 326f8ccece26c256a0add81cc1371a2308cfcfc0 Mon Sep 17 00:00:00 2001 From: Roy Revelt Date: Fri, 12 Aug 2022 12:12:17 +0100 Subject: [PATCH] feat: export types --- packages/string-apostrophes/src/main.ts | 4 ++-- packages/string-apostrophes/types/index.d.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/string-apostrophes/src/main.ts b/packages/string-apostrophes/src/main.ts index cfd99a1d0a..8089fab41a 100644 --- a/packages/string-apostrophes/src/main.ts +++ b/packages/string-apostrophes/src/main.ts @@ -7,7 +7,7 @@ const version: string = v; declare let DEV: boolean; -interface Opts { +export interface Opts { from: number; to?: number; value?: string; @@ -1150,4 +1150,4 @@ function convertAll(str: string, opts?: Partial): convertAllRes { }; } -export { convertOne, convertAll, defaults, version }; +export { convertOne, convertAll, defaults, version, Range, Ranges }; diff --git a/packages/string-apostrophes/types/index.d.ts b/packages/string-apostrophes/types/index.d.ts index 08c4597177..5ee4754ae7 100755 --- a/packages/string-apostrophes/types/index.d.ts +++ b/packages/string-apostrophes/types/index.d.ts @@ -1,4 +1,5 @@ import { Ranges } from "ranges-apply"; +export { Range, Ranges } from "ranges-apply"; declare const version: string; interface Opts { @@ -23,4 +24,4 @@ interface convertAllRes { */ declare function convertAll(str: string, opts?: Partial): convertAllRes; -export { convertAll, convertOne, defaults, version }; +export { Opts, convertAll, convertOne, defaults, version };