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

everyday-types

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

everyday-types

Everyday utility types

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by25.81%
Maintainers
1
Weekly downloads
 
Created
Source

everyday-types

Everyday utility types

npm i everyday-types pnpm add everyday-types yarn add everyday-types

API

#
# String src/string.ts#L1
# EventHandler src/everyday-types.ts#L7
# Chunk src/everyday-types.ts#L3

    N extends N ? number extends N ? T [] : _Chunk<T, N, tuple> : never

# Class src/everyday-types.ts#L5
# Ctor src/everyday-types.ts#L6
# DetailOf src/everyday-types.ts#L52
# EventKeys src/everyday-types.ts#L10
# EventsOf src/everyday-types.ts#L31
# Fn src/everyday-types.ts#L11

    # (args)

      # args

      (args)  =>

# Get src/everyday-types.ts#L12
# Key src/everyday-types.ts#L13

    number | string | symbol

# Keys src/everyday-types.ts#L14
# Mixable src/everyday-types.ts#L15

    {} & Omit<T, "constructor">

# Narrow src/everyday-types.ts#L17

    K extends T ? K : never

# NarrowKey src/everyday-types.ts#L16
# NonNull src/everyday-types.ts#L18
# Null src/everyday-types.ts#L19

    null | undefined | void

# ObjectFromList src/everyday-types.ts#L21

    [K in T extends ReadonlyArray<inferred> ? U : never ]: V

# Prefix src/everyday-types.ts#L24

    template-literal

# SansOn src/everyday-types.ts#L25
# StringLiteral src/everyday-types.ts#L26

    T extends string ? string extends T ? never : T : never

# StringOf src/everyday-types.ts#L27
# Target src/everyday-types.ts#L28

    HTMLElement | SVGElement | Window | Document | ShadowRoot

# ValuesOf src/everyday-types.ts#L29

    T [keyof T]

# _Chunk src/everyday-types.ts#L4

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

FAQs

Package last updated on 22 Jun 2022

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