Skip to content

Commit 083abd7

Browse files
committedMay 12, 2022
Merge branch 'main' of github.com:markdoc/markdoc into main
2 parents a3a415a + 7528bbb commit 083abd7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Contributions and feedback are welcome and encouraged. Check out our [contributi
5959
### Development
6060

6161
1. Run `npm install`
62-
1. Run `npm build`
62+
1. Run `npm run build`
6363
1. Run the tests using `npm test`
6464

6565
## Code of conduct

‎src/types.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import type Func from './ast/function';
12
import type Node from './ast/node';
2-
import type Function from './ast/function';
33
import type Tag from './ast/tag';
44

5-
export type { default as Function } from './ast/function';
6-
export type { default as Node } from './ast/node';
7-
export type { default as Tag } from './ast/tag';
5+
export type { Node, Tag };
6+
export declare type Function = Func;
87

98
export interface AstType {
109
readonly $$mdtype: 'Function' | 'Node' | 'Variable';
@@ -34,7 +33,7 @@ export type ConfigFunction = {
3433
returns?: ValidationType | ValidationType[];
3534
parameters?: Record<string, SchemaAttribute>;
3635
transform?(parameters: Record<string, any>, config: Config): any;
37-
validate?(fn: Function, config: Config): ValidationError[];
36+
validate?(fn: Func, config: Config): ValidationError[];
3837
};
3938

4039
export interface CustomAttributeTypeInterface {

0 commit comments

Comments
 (0)
Please sign in to comment.