New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bedard/types

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedard/types - npm Package Compare versions

Comparing version 0.2.7 to 0.3.0

dist/Pop.d.ts

3

dist/index.d.ts

@@ -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`

[![Dev dependencies](https://img.shields.io/david/dev/scottbedard/types)](https://david-dm.org/scottbedard/types?type=dev)
[![NPM](https://img.shields.io/npm/v/@bedard/types)](https://www.npmjs.com/package/@bedard/types)
[![License](https://img.shields.io/github/license/scottbedard/types?color=blue)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc