mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
fix: type errors in easy-ast when generating docs
This commit is contained in:
committed by
Rainer Killinger
parent
4fb5941c56
commit
57a5b6061b
@@ -4,8 +4,9 @@
|
|||||||
<title>OpenStApps API</title>
|
<title>OpenStApps API</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://fonts.bunny.net" />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700"
|
href="https://fonts.bunny.net/css?family=montserrat:300,400,700|roboto:300,400,700"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<!-- Redoc doesn't change outer page styles -->
|
<!-- Redoc doesn't change outer page styles -->
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<redoc spec-url="openapi.json"></redoc>
|
<redoc spec-url="./openapi.json"></redoc>
|
||||||
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
|
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
import {EasyAstSpecType} from '../easy-ast-spec-type.js';
|
import {EasyAstSpecType} from '../easy-ast-spec-type.js';
|
||||||
import {LightweightDefinitionKind} from '../../src/index.js';
|
import {LightweightDefinitionKind} from '../../src/index.js';
|
||||||
|
import {TypeFlags} from 'typescript';
|
||||||
|
|
||||||
// @ts-expect-error unused type
|
// @ts-expect-error unused type
|
||||||
type TestTypeAlias = number | string;
|
type TestTypeAlias = number | string;
|
||||||
@@ -56,12 +57,12 @@ export const testConfig: EasyAstSpecType = {
|
|||||||
{
|
{
|
||||||
referenceName: 'Foo',
|
referenceName: 'Foo',
|
||||||
value: 0,
|
value: 0,
|
||||||
flags: 1280,
|
flags: 1280 as TypeFlags,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
referenceName: 'Bar',
|
referenceName: 'Bar',
|
||||||
value: 1,
|
value: 1,
|
||||||
flags: 1280,
|
flags: 1280 as TypeFlags,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
import {EasyAstSpecType} from '../easy-ast-spec-type.js';
|
import {EasyAstSpecType} from '../easy-ast-spec-type.js';
|
||||||
import {LightweightDefinitionKind} from '../../src/index.js';
|
import {LightweightDefinitionKind} from '../../src/index.js';
|
||||||
|
import {TypeFlags} from 'typescript';
|
||||||
|
|
||||||
// @ts-expect-error unused type
|
// @ts-expect-error unused type
|
||||||
enum TestAuto {
|
enum TestAuto {
|
||||||
@@ -41,12 +42,12 @@ export const testConfig: EasyAstSpecType = {
|
|||||||
{
|
{
|
||||||
referenceName: 'Foo',
|
referenceName: 'Foo',
|
||||||
value: 0,
|
value: 0,
|
||||||
flags: 1280,
|
flags: 1280 as TypeFlags,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
referenceName: 'Bar',
|
referenceName: 'Bar',
|
||||||
value: 1,
|
value: 1,
|
||||||
flags: 1280,
|
flags: 1280 as TypeFlags,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -61,12 +62,12 @@ export const testConfig: EasyAstSpecType = {
|
|||||||
{
|
{
|
||||||
referenceName: 'YES',
|
referenceName: 'YES',
|
||||||
value: 'yes',
|
value: 'yes',
|
||||||
flags: 1152,
|
flags: 1152 as TypeFlags,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
referenceName: 'NO',
|
referenceName: 'NO',
|
||||||
value: 'no',
|
value: 'no',
|
||||||
flags: 1152,
|
flags: 1152 as TypeFlags,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
import {EasyAstSpecType} from '../easy-ast-spec-type.js';
|
import {EasyAstSpecType} from '../easy-ast-spec-type.js';
|
||||||
import {LightweightDefinitionKind} from '../../src/index.js';
|
import {LightweightDefinitionKind} from '../../src/index.js';
|
||||||
|
import {TypeFlags} from 'typescript';
|
||||||
|
|
||||||
// @ts-expect-error unused
|
// @ts-expect-error unused
|
||||||
interface Test {
|
interface Test {
|
||||||
@@ -53,7 +54,7 @@ export const testConfig: EasyAstSpecType = {
|
|||||||
name: 'boolean_type',
|
name: 'boolean_type',
|
||||||
type: {
|
type: {
|
||||||
value: 'boolean',
|
value: 'boolean',
|
||||||
flags: 1_048_592,
|
flags: 1_048_592 as TypeFlags,
|
||||||
specificationTypes: [
|
specificationTypes: [
|
||||||
{
|
{
|
||||||
value: 'false',
|
value: 'false',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"entryPoints": ["packages/**/docs/docs.json"],
|
"entryPoints": ["packages/**/docs/docs.json"],
|
||||||
"out": "./docs",
|
"out": "./docs",
|
||||||
"navigationLinks": {
|
"navigationLinks": {
|
||||||
"API": "api",
|
"API": "./api/",
|
||||||
"GitLab": "https://gitlab.com/openstapps/openstapps/",
|
"GitLab": "https://gitlab.com/openstapps/openstapps/",
|
||||||
"Wiki": "https://gitlab.com/openstapps/openstapps/-/wikis/home"
|
"Wiki": "https://gitlab.com/openstapps/openstapps/-/wikis/home"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user