From 4644a73d6e303e70bf464c72f8cb79291e3ccc29 Mon Sep 17 00:00:00 2001 From: rawpixel-vincent Date: Sun, 7 Apr 2024 13:18:58 +0700 Subject: [PATCH] update initial tuple to readonly --- package-lock.json | 4 ++-- package.json | 2 +- strict.d.ts | 6 ++++-- stringList.d.ts | 6 ++++-- stringListFunction.d.ts | 8 ++++++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1575b2e..6b0a910 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "string-literal-list", - "version": "1.24.0", + "version": "1.25.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "string-literal-list", - "version": "1.24.0", + "version": "1.25.0", "license": "MIT", "devDependencies": { "@types/node": "latest", diff --git a/package.json b/package.json index 04ddb55..0091792 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "string-literal-list", - "version": "1.24.0", + "version": "1.25.0", "description": "an array for string literal", "main": "stringList.cjs", "module": "stringList.js", diff --git a/strict.d.ts b/strict.d.ts index 2bf836b..ffb3b70 100644 --- a/strict.d.ts +++ b/strict.d.ts @@ -1,7 +1,9 @@ export declare function stringList< TT extends readonly string[] = readonly never[], ->(...strings: TT): StringLiteralList.list.IStringList; +>( + ...strings: TT +): StringLiteralList.list.IStringList; export declare function sl( ...strings: TT -): StringLiteralList.list.IStringList; +): StringLiteralList.list.IStringList; diff --git a/stringList.d.ts b/stringList.d.ts index 6b5b7e8..315bfff 100644 --- a/stringList.d.ts +++ b/stringList.d.ts @@ -1,7 +1,9 @@ export declare function stringList< TT extends readonly string[] = readonly never[], ->(...strings: TT): StringLiteralList.list.IStringList; +>( + ...strings: TT +): StringLiteralList.list.IStringList; export declare function sl( ...strings: TT -): StringLiteralList.list.IStringList; +): StringLiteralList.list.IStringList; diff --git a/stringListFunction.d.ts b/stringListFunction.d.ts index 7be53c7..736f732 100644 --- a/stringListFunction.d.ts +++ b/stringListFunction.d.ts @@ -3,8 +3,12 @@ export declare function stringListMutable< TT extends readonly string[] = readonly never[], ->(...list: TT): StringLiteralList.list.IStringList; +>( + ...list: TT +): StringLiteralList.list.IStringList; export declare function stringListReadonly< TT extends readonly string[] = readonly never[], ->(...list: TT): StringLiteralList.list.IStringList; +>( + ...list: TT +): StringLiteralList.list.IStringList;