1.2.0 • Published 3 years ago

@erkobridee/ts-definitions-common v1.2.0

Weekly downloads
222
License
ISC
Repository
github
Last release
3 years ago

Actions Status

typescript common definitions

⚠️  This library must be used as a dev dependency on a project that uses TypeScript

Instalation

npm install --save-dev @erkobridee/ts-definitions-common

Documentation

@erkobridee/ts-definitions-common

Examples

codesandbox example

TFunction

import { TFunction } from '@erkobridee/ts-definitions-common';

// or

import { TFunction } from '@erkobridee/ts-definitions-common/types/functions';



const myFunction: TFunction = () =>  undefined;

const greetings: TFunction<[string], string> => value => `greetings ${value}!`;

TDOMEventHandler

import { TDOMEventHandler } from '@erkobridee/ts-definitions-common';

// or

import { TDOMEventHandler } from '@erkobridee/ts-definitions-common/types/dom';

const clickHandler: TDOMEventHandler = (event) => console.log(event);

window.addEventListener('click', clickHandler);
1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.5.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago