diff --git a/StringLiteralList.d.ts b/StringLiteralList.d.ts index 2a822d4..1e5e307 100644 --- a/StringLiteralList.d.ts +++ b/StringLiteralList.d.ts @@ -18,7 +18,7 @@ export interface IStringList withSuffix

( suffix: P, ): IStringList>; - value(val: V): V extends T ? T : never; + value(val: V): V extends T ? V : never; mutable(): string[]; // Implemented methods to return the frozen array, typed as IStringList. diff --git a/package-lock.json b/package-lock.json index e51d9aa..3e691d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "string-literal-list", - "version": "1.5.0", + "version": "1.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "string-literal-list", - "version": "1.5.0", + "version": "1.5.1", "license": "MIT", "dependencies": { "core-js": "^3.36.0" diff --git a/package.json b/package.json index c351e09..3cadfdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "string-literal-list", - "version": "1.5.0", + "version": "1.5.1", "description": "an array for string literal", "main": "stringList.js", "types": "stringList.d.ts",