From 42c4508f9534be70a7c69b67ff9f47c02eedd82f Mon Sep 17 00:00:00 2001 From: Quinn Chaffee Date: Wed, 29 Apr 2020 07:04:12 -0600 Subject: [PATCH] Add a few `reservedKeywords` `object` especially since this its part of the [Activity Stream](https://www.w3.org/TR/activitystreams-core/#activities) spec. refs https://github.com/SweetIQ/schemats/issues/90 --- src/typescript.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/typescript.ts b/src/typescript.ts index 0add9e0..4efda41 100644 --- a/src/typescript.ts +++ b/src/typescript.ts @@ -10,6 +10,8 @@ import Options from './options' function nameIsReservedKeyword (name: string): boolean { const reservedKeywords = [ + 'object', + 'default', 'string', 'number', 'package'