Angular-RU / angular-ru-sdk

🅰️ ngular-RU Software Development Kit
71 stars 16 forks source link

🚀 - Simplify `Nullable` utility-type #1487

Closed Markiewic closed 1 year ago

Markiewic commented 1 year ago

Which @angular-ru/* package(s) are relevant/releated to the feature request?

cdk

Description

Make a nil type in addition (or instead of) Nullable type. It takes up less space. In comparison:

const someNullableString: string | nil = maybeGetSomeString();
// vs
const someNullableString: Nullable<string> = maybeGetSomeString();

In addition provide for the possibility to use our utility-types without importing them in every typescript file. Check if it will work if user added some setting to compilerOptions.types array of tsconfig.