Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vibrant/types

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vibrant/types - npm Package Compare versions

Comparing version 3.2.1-alpha.1 to 4.0.0-alpha.1

dist/cjs/index.cjs

34

package.json
{
"name": "@vibrant/types",
"version": "3.2.1-alpha.1",
"version": "4.0.0-alpha.1",
"description": "Common typings for vibrant",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "vite build"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"types": "dist/esm/index.d.ts",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist",
"src"
],
"author": {

@@ -20,3 +40,5 @@ "name": "akfish",

"devDependencies": {
"typescript": "^3.7.2"
"@tanstack/config": "^0.14.2",
"typescript": "^4.5.2",
"vite": "^6.0.3"
},

@@ -26,3 +48,3 @@ "publishConfig": {

},
"gitHead": "e667d4c12e1de66e251d451710b093e9cb4630c2"
"gitHead": "968ad565c625279b5d3e2baf3e5da7f764551ade"
}

24

src/index.ts
export interface Callback<T> {
(err?: Error, result?: T): void
(err?: Error, result?: T): void;
}
export type Resolvable<T> = T | Promise<T>
export type Resolvable<T> = T | Promise<T>;
export interface IndexedObject {
[key: string]: any
[key: string]: any;
}
export class Defer<R> {
resolve: (thenableOrResult: R | Promise<R>) => void
reject: (error: any) => void
promise: Promise<R>
constructor () {
resolve: (thenableOrResult: R | Promise<R>) => void;
reject: (error: any) => void;
promise: Promise<R>;
constructor() {
this.promise = new Promise<R>((_resolve, _reject) => {
this.resolve = _resolve
this.reject = _reject
})
this.resolve = _resolve;
this.reject = _reject;
});
}
}
export function defer<R> (): Defer<R> {
return new Defer<R>()
export function defer<R>(): Defer<R> {
return new Defer<R>();
}
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