本文整理匯總了TypeScript中joi-assert類的典型用法代碼示例。如果您正苦於以下問題:TypeScript joi-assert類的具體用法?TypeScript joi-assert怎麽用?TypeScript joi-assert使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了joi-assert類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: header
export function header(obj: any, message?: string): model.Header {
return joiAssert(obj, schema.header, message);
}
示例2: repository
export function repository(obj: any, message?: string): model.Repository {
return joiAssert(obj, schema.repository, message);
}
示例3: project
export function project(obj: any, message?: string): model.Project {
return joiAssert(obj, schema.project, message);
}
示例4: person
export function person(obj: any, message?: string): model.Person {
return joiAssert(obj, schema.person, message);
}
示例5: label
export function label(obj: any, message?: string): model.Label {
return joiAssert(obj, schema.label, message);
}