From 57a5b6061b7a1ac705f1d19d42b934a09824f532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Wed, 23 Aug 2023 08:45:47 +0000 Subject: [PATCH] fix: type errors in easy-ast when generating docs --- packages/core/api-doc.html | 5 +++-- packages/easy-ast/test/project/alias-like.ast-test.ts | 5 +++-- .../test/project/enum-specified-value.ast-test.ts | 9 +++++---- .../easy-ast/test/project/primitive-types.ast-test.ts | 3 ++- typedoc.json | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/core/api-doc.html b/packages/core/api-doc.html index ff6b0efc..fb8fda2a 100644 --- a/packages/core/api-doc.html +++ b/packages/core/api-doc.html @@ -4,8 +4,9 @@ OpenStApps API + @@ -17,7 +18,7 @@ - + diff --git a/packages/easy-ast/test/project/alias-like.ast-test.ts b/packages/easy-ast/test/project/alias-like.ast-test.ts index 18c9cdfc..6339ebac 100644 --- a/packages/easy-ast/test/project/alias-like.ast-test.ts +++ b/packages/easy-ast/test/project/alias-like.ast-test.ts @@ -15,6 +15,7 @@ */ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; +import {TypeFlags} from 'typescript'; // @ts-expect-error unused type type TestTypeAlias = number | string; @@ -56,12 +57,12 @@ export const testConfig: EasyAstSpecType = { { referenceName: 'Foo', value: 0, - flags: 1280, + flags: 1280 as TypeFlags, }, { referenceName: 'Bar', value: 1, - flags: 1280, + flags: 1280 as TypeFlags, }, ], }, diff --git a/packages/easy-ast/test/project/enum-specified-value.ast-test.ts b/packages/easy-ast/test/project/enum-specified-value.ast-test.ts index 4acf28ad..dc7d2950 100644 --- a/packages/easy-ast/test/project/enum-specified-value.ast-test.ts +++ b/packages/easy-ast/test/project/enum-specified-value.ast-test.ts @@ -15,6 +15,7 @@ */ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; +import {TypeFlags} from 'typescript'; // @ts-expect-error unused type enum TestAuto { @@ -41,12 +42,12 @@ export const testConfig: EasyAstSpecType = { { referenceName: 'Foo', value: 0, - flags: 1280, + flags: 1280 as TypeFlags, }, { referenceName: 'Bar', value: 1, - flags: 1280, + flags: 1280 as TypeFlags, }, ], }, @@ -61,12 +62,12 @@ export const testConfig: EasyAstSpecType = { { referenceName: 'YES', value: 'yes', - flags: 1152, + flags: 1152 as TypeFlags, }, { referenceName: 'NO', value: 'no', - flags: 1152, + flags: 1152 as TypeFlags, }, ], }, diff --git a/packages/easy-ast/test/project/primitive-types.ast-test.ts b/packages/easy-ast/test/project/primitive-types.ast-test.ts index a975a286..ace09bc1 100644 --- a/packages/easy-ast/test/project/primitive-types.ast-test.ts +++ b/packages/easy-ast/test/project/primitive-types.ast-test.ts @@ -15,6 +15,7 @@ */ import {EasyAstSpecType} from '../easy-ast-spec-type.js'; import {LightweightDefinitionKind} from '../../src/index.js'; +import {TypeFlags} from 'typescript'; // @ts-expect-error unused interface Test { @@ -53,7 +54,7 @@ export const testConfig: EasyAstSpecType = { name: 'boolean_type', type: { value: 'boolean', - flags: 1_048_592, + flags: 1_048_592 as TypeFlags, specificationTypes: [ { value: 'false', diff --git a/typedoc.json b/typedoc.json index 4b387262..5f257ce0 100644 --- a/typedoc.json +++ b/typedoc.json @@ -3,7 +3,7 @@ "entryPoints": ["packages/**/docs/docs.json"], "out": "./docs", "navigationLinks": { - "API": "api", + "API": "./api/", "GitLab": "https://gitlab.com/openstapps/openstapps/", "Wiki": "https://gitlab.com/openstapps/openstapps/-/wikis/home" },