Skip to content

Commit

Permalink
Fix LastArrayElement type
Browse files Browse the repository at this point in the history
Fixes #195
  • Loading branch information
sindresorhus committed Mar 23, 2021
1 parent 36c5be2 commit 8445521
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion base.d.ts
Expand Up @@ -33,7 +33,6 @@ export {Entry} from './source/entry';
export {Entries} from './source/entries';
export {SetReturnType} from './source/set-return-type';
export {Asyncify} from './source/asyncify';
export {LastArrayElement} from './source/last-array-element';

// Miscellaneous
export {PackageJson} from './source/package-json';
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -104,7 +104,6 @@ Click the type names for complete docs.
- [`Entries`](source/entries.d.ts) - Create a type that represents the type of the entries of a collection.
- [`SetReturnType`](source/set-return-type.d.ts) - Create a function type with a return type of your choice and the same parameters as the given function type.
- [`Asyncify`](source/asyncify.d.ts) - Create an async version of the given function type.
- [`LastArrayElement`](source/last-array-element.d.ts) - Extracts the type of the last element of an array.

### Template literal types

Expand All @@ -128,6 +127,7 @@ Click the type names for complete docs.
- [`Split`](ts41/split.d.ts) - Represents an array of strings split using a given character or character set.
- [`Trim`](ts41/trim.d.ts) - Remove leading and trailing spaces from a string.
- [`Get`](ts41/get.d.ts) - Get a deeply-nested property from an object using a key path, like [Lodash's `.get()`](https://lodash.com/docs/latest#get) function.
- [`LastArrayElement`](ts41/last-array-element.d.ts) - Extracts the type of the last element of an array.

### Miscellaneous

Expand Down
1 change: 1 addition & 0 deletions ts41/index.d.ts
Expand Up @@ -10,3 +10,4 @@ export {DelimiterCase} from './delimiter-case';
export {Split} from './split';
export {Trim} from './trim';
export {Get} from './get';
export {LastArrayElement} from './last-array-element';
File renamed without changes.

0 comments on commit 8445521

Please sign in to comment.