@bedard/types
Advanced tools
Comparing version 0.2.7 to 0.3.0
@@ -1,2 +0,2 @@ | ||
declare const version = "0.2.7"; | ||
declare const version = "0.3.0"; | ||
export { Difference } from './Difference'; | ||
@@ -8,2 +8,3 @@ export { Equal } from './Equal'; | ||
export { NotEqual } from './NotEqual'; | ||
export { Pop } from './Pop'; | ||
export { Shift } from './Shift'; | ||
@@ -10,0 +11,0 @@ export { Split } from './Split'; |
@@ -1,2 +0,2 @@ | ||
declare const version = "0.2.7"; | ||
declare const version = "0.3.0"; | ||
export { Difference } from './Difference'; | ||
@@ -8,2 +8,3 @@ export { Equal } from './Equal'; | ||
export { NotEqual } from './NotEqual'; | ||
export { Pop } from './Pop'; | ||
export { Shift } from './Shift'; | ||
@@ -10,0 +11,0 @@ export { Split } from './Split'; |
@@ -1,3 +0,3 @@ | ||
const version = '0.2.7'; | ||
const version = '0.3.0'; | ||
export { version }; |
@@ -5,4 +5,4 @@ 'use strict'; | ||
const version = '0.2.7'; | ||
const version = '0.3.0'; | ||
exports.version = version; |
/** | ||
* Remove the first element from `T`. | ||
* Remove the first element of `T`. | ||
* | ||
@@ -4,0 +4,0 @@ * @example |
@@ -30,3 +30,3 @@ { | ||
}, | ||
"version": "0.2.7" | ||
"version": "0.3.0" | ||
} |
@@ -6,2 +6,3 @@ # `@bedard/types` | ||
[](https://david-dm.org/scottbedard/types?type=dev) | ||
[](https://www.npmjs.com/package/@bedard/types) | ||
[](https://github.com/scottbedard/types/blob/main/LICENSE) | ||
@@ -27,2 +28,3 @@ | ||
- [`NotEqual<A, B>`](#notequala-b) | ||
- [`Pop<T>`](#popt) | ||
- [`Shift<T>`](#shiftt) | ||
@@ -97,5 +99,15 @@ - [`Split<Source, Delimeter>`](#splitsource-delimeter) | ||
### `Pop<T>` | ||
Remove the last element of `T`. | ||
```ts | ||
import { Pop } from '@bedard/types' | ||
type Items = Pop<['foo', 'bar', 'baz']> // ['foo', 'bar'] | ||
``` | ||
### `Shift<T>` | ||
Remove the first element from `T`. | ||
Remove the first element of `T`. | ||
@@ -105,3 +117,3 @@ ```ts | ||
type Tail = Shift<['foo', 'bar', 'baz']> // ['bar', 'baz'] | ||
type Items = Shift<['foo', 'bar', 'baz']> // ['bar', 'baz'] | ||
``` | ||
@@ -166,1 +178,5 @@ | ||
``` | ||
## License | ||
[MIT](https://github.com/scottbedard/types/blob/main/LICENSE) |
@@ -7,2 +7,3 @@ export { Difference } from './Difference' | ||
export { NotEqual } from './NotEqual' | ||
export { Pop } from './Pop' | ||
export { Shift } from './Shift' | ||
@@ -15,2 +16,2 @@ export { Split } from './Split' | ||
export const version = '0.2.7' | ||
export const version = '0.3.0' |
/** | ||
* Remove the first element from `T`. | ||
* Remove the first element of `T`. | ||
* | ||
@@ -4,0 +4,0 @@ * @example |
22349
52
508
178