Skip to content

Commit

Permalink
update value return type
Browse files Browse the repository at this point in the history
  • Loading branch information
rawpixel-vincent committed Mar 4, 2024
1 parent bfc6b78 commit 08d231e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion StringLiteralList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface IStringList<T extends unknown>
withSuffix<P extends string>(
suffix: P,
): IStringList<sl.utils.StringConcat<T extends string ? T : string, P>>;
value<V extends T & string>(val: V): V extends T ? T : never;
value<V extends T & string>(val: V): V extends T ? V : never;
mutable(): string[];

// Implemented methods to return the frozen array, typed as IStringList.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 08d231e

Please sign in to comment.