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

type-core

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-core

A types utility belt

  • 0.15.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
987
increased by8.7%
Maintainers
0
Weekly downloads
 
Created
Source

type-core

Version Types License

A types utility belt.

Install

npm install type-core

Types

Utilities

TypeGuard

See source.

An exported object with methods:

  • isID(item: any): item is ID: includes string and number.
  • isNullLike(item: any): item is NullLike.
  • isFalseLike(item: any): item is FalseLike
  • isPrimitive(item: any): item is Primitive: includes bigint, boolean, number, string, symbol, null, and undefined.
  • isNull(item: any): item is null
  • isUndefined(item: any): item is undefined
  • isBoolean(item: any): item is boolean
  • isString(item: any): item is string
  • isNumber(item: any): item is number
  • isBigInt(item: any): item is bigint
  • isSymbol(item: any): item is symbol
  • isFunction(item: any): item is VariadicFn
  • isObject(item: any): item is any: excludes null, includes array.
  • isRecord(item: any): item is Members<unknown>: excludes null, array, and function.
  • isArray(item: any): item is unknown[]
  • isPromiseLike(item: any): item is PromiseLike<unknown>: item is a thenable.
  • isPromise(item: any): item is Promise<unknown>: item is a Promise.
  • isIterable(item: any): item is Iterable<unknown>
  • isAsyncIterable(item: any): item is AsyncIterable<unknown>
  • isIterator(item: any): item is Iterator<unknown, unknown, unknown>
  • isEventEmitterLike(item: any): item is Partial<NodeJS.EventEmitter>
  • isEventEmitter(item: any): item is NodeJS.EventEmitter
  • isEventTarget(item: any): item is EventTarget

Keywords

FAQs

Package last updated on 29 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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