New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@code-workers.io/ng-types

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-workers.io/ng-types

A utility library for Angular to handle strict types and some coercion helper

latest
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

@code-workers.io/ng-types

Tired of writing e.g. @Input() arg: string | null | undefined over and over again when using Angular's strict mode?

ng-types to the rescue! This handy lib provides a collection of types which will reflect strict inputs.

Besides that it offers some coercion helpers to make your life easier.

Installation

npm i @code-workers.io/ng-types

Supported types

  • StringInput
  • NumberInput
  • BooleanInput
  • DateInput
  • ArrayInput
  • ObjectInput
  • FunctionInput
  • Nullable<T>
  • Optional<T>

Coercion helpers

  • coerceBoolean
  • coerceNumber
  • coerceObservable

Compatibility

  • Version 1.x.x is compatible with Angular >= 10.0.0

Keywords

angular

FAQs

Package last updated on 24 Nov 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