Update it.ts

This commit is contained in:
syuilo⭐️ 2017-03-03 09:48:06 +09:00
parent 42ed35bfc9
commit 1e1800fd66

View File

@ -26,6 +26,30 @@
* const [val, err] = it(x).expect.string().required().qed(); * const [val, err] = it(x).expect.string().required().qed();
*/ */
/**
* null undefined
*
* nullまたはundefined
*
*
* nullとundefinedを次のように区別しています:
* null ...
* undefined ...
*
* APIに次のデータを含むリクエストが来たとします:
* { name: 'Alice' }
* birthday
* name
* birthday undefined
* null(=birthdayを未設定にしたい)
* undefined null
* undefined null
*
* .require()
* () .notUndefined()
* .notNull() 使
*/
import * as mongo from 'mongodb'; import * as mongo from 'mongodb';
import hasDuplicates from '../common/has-duplicates'; import hasDuplicates from '../common/has-duplicates';