Skip to content

Commit 4b16a75

Browse files
committed
update doc exports
1 parent c1fb65b commit 4b16a75

File tree

9 files changed

+22
-21
lines changed

9 files changed

+22
-21
lines changed

packages/core/src/api/Validators.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ import type {
2020
UnvalidatedPropAccess,
2121
} from 'packages/core/src/parsers/bindTargetParser/BindTargetDeclaration';
2222
import type { SimpleButtonGroupDeclaration } from 'packages/core/src/parsers/ButtonParser';
23+
import type { SimpleFieldArgument, UnvalidatedFieldArgument } from 'packages/core/src/parsers/FieldDeclaration';
2324
import type {
2425
SimpleInputFieldDeclaration,
2526
UnvalidatedInputFieldDeclaration,
2627
} from 'packages/core/src/parsers/inputFieldParser/InputFieldDeclaration';
27-
import type {
28-
SimpleFieldArgument,
29-
UnvalidatedFieldArgument,
30-
} from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
3128
import type { ParsingResultNode } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
3229
import type {
3330
SimpleJsViewFieldBindTargetMapping,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
import type { ParsingResultNode } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
12
import type { ErrorCollection } from 'packages/core/src/utils/errors/ErrorCollection';
23

34
export interface FieldDeclaration {
45
declarationString?: string | undefined;
56
errorCollection: ErrorCollection;
67
}
8+
9+
export interface SimpleFieldArgument {
10+
name: string;
11+
value: string[];
12+
}
13+
14+
export interface UnvalidatedFieldArgument {
15+
name: ParsingResultNode;
16+
value: ParsingResultNode[];
17+
}

packages/core/src/parsers/inputFieldParser/InputFieldDeclaration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import type {
44
BindTargetDeclaration,
55
UnvalidatedBindTargetDeclaration,
66
} from 'packages/core/src/parsers/bindTargetParser/BindTargetDeclaration';
7-
import type { FieldDeclaration } from 'packages/core/src/parsers/FieldDeclaration';
87
import type {
8+
FieldDeclaration,
99
SimpleFieldArgument,
1010
UnvalidatedFieldArgument,
11-
} from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
11+
} from 'packages/core/src/parsers/FieldDeclaration';
1212
import type { ParsingResultNode } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
1313

1414
export interface InputFieldDeclaration extends FieldDeclaration {

packages/core/src/parsers/inputFieldParser/InputFieldParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { InputFieldType } from 'packages/core/src/config/FieldConfigs';
22
import type { IPlugin } from 'packages/core/src/IPlugin';
33
import type { BindTargetScope } from 'packages/core/src/metadata/BindTargetScope';
44
import type { UnvalidatedBindTargetDeclaration } from 'packages/core/src/parsers/bindTargetParser/BindTargetDeclaration';
5+
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/FieldDeclaration';
56
import type {
67
InputFieldDeclaration,
78
PartialUnvalidatedInputFieldDeclaration,
@@ -13,7 +14,6 @@ import type {
1314
ITemplateSupplier,
1415
TemplateSupplierTemplate,
1516
} from 'packages/core/src/parsers/inputFieldParser/ITemplateSupplier';
16-
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
1717
import { toResultNode } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
1818
import {
1919
P_InputFieldDeclaration,

packages/core/src/parsers/nomParsers/FieldArgumentNomParsers.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Parser } from '@lemons_dev/parsinom/lib/Parser';
22
import { P_UTILS } from '@lemons_dev/parsinom/lib/ParserUtils';
33
import { P } from '@lemons_dev/parsinom/lib/ParsiNOM';
4+
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/FieldDeclaration';
45
import type { ParsingResultNode } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
56
import {
67
createResultNode,
@@ -35,13 +36,3 @@ export const P_FieldArguments: Parser<UnvalidatedFieldArgument[]> = P.separateBy
3536
P_FieldArgument,
3637
P.string(',').describe('argument separator ","').trim(P_UTILS.optionalWhitespace()),
3738
);
38-
39-
export interface UnvalidatedFieldArgument {
40-
name: ParsingResultNode;
41-
value: ParsingResultNode[];
42-
}
43-
44-
export interface SimpleFieldArgument {
45-
name: string;
46-
value: string[];
47-
}

packages/core/src/parsers/nomParsers/InputFieldNomParsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Parser } from '@lemons_dev/parsinom/lib/Parser';
22
import { P_UTILS } from '@lemons_dev/parsinom/lib/ParserUtils';
33
import { P } from '@lemons_dev/parsinom/lib/ParsiNOM';
4+
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/FieldDeclaration';
45
import type { PartialUnvalidatedInputFieldDeclaration } from 'packages/core/src/parsers/inputFieldParser/InputFieldDeclaration';
56
import { P_BindTarget } from 'packages/core/src/parsers/nomParsers/BindTargetNomParsers';
6-
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
77
import { P_FieldArguments } from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
88
import { createResultNode, P_Ident, P_IdentWithSpaces } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
99

packages/core/src/parsers/nomParsers/ViewFieldNomParsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Parser } from '@lemons_dev/parsinom/lib/Parser';
22
import { P_UTILS } from '@lemons_dev/parsinom/lib/ParserUtils';
33
import { P } from '@lemons_dev/parsinom/lib/ParsiNOM';
44
import type { UnvalidatedBindTargetDeclaration } from 'packages/core/src/parsers/bindTargetParser/BindTargetDeclaration';
5+
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/FieldDeclaration';
56
import { P_BindTarget } from 'packages/core/src/parsers/nomParsers/BindTargetNomParsers';
6-
import type { UnvalidatedFieldArgument } from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
77
import { P_FieldArguments } from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
88
import { createResultNode, P_Ident } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
99
import type {

packages/core/src/parsers/viewFieldParser/ViewFieldDeclaration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import type {
44
BindTargetDeclaration,
55
UnvalidatedBindTargetDeclaration,
66
} from 'packages/core/src/parsers/bindTargetParser/BindTargetDeclaration';
7-
import type { FieldDeclaration } from 'packages/core/src/parsers/FieldDeclaration';
87
import type {
8+
FieldDeclaration,
99
SimpleFieldArgument,
1010
UnvalidatedFieldArgument,
11-
} from 'packages/core/src/parsers/nomParsers/FieldArgumentNomParsers';
11+
} from 'packages/core/src/parsers/FieldDeclaration';
1212
import type { ParsingResultNode } from 'packages/core/src/parsers/nomParsers/GeneralNomParsers';
1313

1414
export interface ViewFieldDeclaration extends FieldDeclaration {

packages/obsidian/src/docsExports.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export * from 'packages/obsidian/src/ObsidianAPI';
22
export * from 'packages/core/src/config/APIConfigs';
3+
export * from 'packages/core/src/config/FieldConfigs';
4+
export * from 'packages/core/src/config/ButtonConfig';
35

46
export { Mountable } from 'packages/core/src/utils/Mountable';
57
export { FieldMountable } from 'packages/core/src/fields/FieldMountable';

0 commit comments

Comments
 (0)