diff --git a/base.d.ts b/base.d.ts index c61ec473d..625a05d58 100644 --- a/base.d.ts +++ b/base.d.ts @@ -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'; diff --git a/readme.md b/readme.md index 7c7862a3c..2fc34842a 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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 diff --git a/ts41/index.d.ts b/ts41/index.d.ts index bff2c62c9..5797cd1f8 100644 --- a/ts41/index.d.ts +++ b/ts41/index.d.ts @@ -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'; diff --git a/source/last-array-element.d.ts b/ts41/last-array-element.d.ts similarity index 100% rename from source/last-array-element.d.ts rename to ts41/last-array-element.d.ts