mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 14:32:50 +00:00
fix: type errors in easy-ast when generating docs
This commit is contained in:
committed by
Rainer Killinger
parent
4fb5941c56
commit
57a5b6061b
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user