This commit is contained in:
syuilo 2018-11-02 03:41:09 +09:00
parent 931bdc6aac
commit c48cbd95f6
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 3 additions and 3 deletions

View File

@ -61,11 +61,11 @@ async function genVars(lang: string): Promise<{ [key: string]: any }> {
}
// WIP type
const parseParamDefinition = (key: string, param: Context) => {
const parseParamDefinition = (key: string, x: any) => {
return Object.assign({
name: key,
type: param.getType()
}, param.data);
type: x.validator.getType()
}, x);
};
const parsePropDefinition = (key: string, prop: any) => {