Skip to content

Instantly share code, notes, and snippets.

OSS on my mind

Tylor Steinberger TylorS

OSS on my mind
Block or report user

Report or block TylorS

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TylorS / dissoc.ts
Created Jan 1, 2018
Dissoc Type For Typescript
View dissoc.ts
type Subtract<A extends string, B extends string> = {
readonly [Key in A]: (Record<B, never> & Record<string, Key>)[Key]
type Dissoc<A, B extends string> = Readonly<Pick<A, Subtract<keyof A, B>>>
View KeyboardEventKey.ts
export const enum KeyboareEventKey {
// Modifier Keys
Alt = 'Alt',
AltGraph = 'AltGraph',
CapsLock = 'CapsLock',
Control = 'Control',
Fn = 'Fn',
FnLock = 'FnLock',
Hyper = 'Hyper',
Meta = 'Meta',
View tslint.json
"rules": {
"adjacent-overload-signatures": true,
"align": [
"array-type": [
You can’t perform that action at this time.