Skip to content

Generation Schema

Justin Bush edited this page May 21, 2024 · 1 revision
TypeScript Type Swift Type
string String
boolean Bool
number Double
any Any
void Void
undefined Optional
null Optional
Array [T]
T[] [T]

TypeMap

export const typeMap: { [key: string]: string } = {
  'string': 'String',
  'boolean': 'Bool',
  'number': 'Double',
  'any': 'Any',
  'void': 'Void',
  'undefined': 'Optional',
  'null': 'Optional',
};

Clone this wiki locally