Skip to content

Instantly share code, notes, and snippets.

@Shimon1981
Shimon1981 / foo.ts
Created November 9, 2020 15:53 — forked from OliverJAsh/foo.ts
Records and dictionaries in TypeScript
/*
In JavaScript, objects can be used to serve various purposes.
To maximise our usage of the type system, we should assign different types to our objects depending
on the desired purpose.
In this blog post I will clarify two common purposes for objects known as records and dictionaries
(aka maps), and how they can both be used with regards to the type system.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self setTabBarSettings];
[self setNavBarSettings];
[self setupParse];
[self registerForRemoteNotifications:application];
return YES;
}