Skip to content

I've created this extension that automatically generates typescript code using snippets. Its main purpose is to improve the developer experience (DX) and provide a collection of useful types that you can utilize.

License

Notifications You must be signed in to change notification settings

alvseven/typescript-snippets

Repository files navigation

Code snippets that generate useful types in typescript. Simply type the prefix and the intellisense will display the type. Press tab and enjoy!

Documentation:

All types names:

  • VerifyNumberIsPositive<Number>
  • RangeTuple<Number>
  • Sum<FirstNumber, SecondNumber>
  • BuildTuple<Length>
  • MinusOne<Number>
  • NonEmptyArray<Type>
  • GetStringLength<String>
  • CheckStringLength<String, Length>
  • GetArrayType<Array>
  • FilterObjectByType<Obj, Type>
  • NonEmptyObject<Obj>
  • OptionalKeys<Obj, Keys>
  • GetCharacters<String>
  • ToNumber<Type>
  • GetNumberIndexes<Type>
  • AnyRecordObject<>
  • AnyMappedObject<>
  • DeepPartial<Type>

About

I've created this extension that automatically generates typescript code using snippets. Its main purpose is to improve the developer experience (DX) and provide a collection of useful types that you can utilize.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published