Update it.ts
This commit is contained in:
		
							parent
							
								
									1e1800fd66
								
							
						
					
					
						commit
						3ca7a442ab
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -15,6 +15,8 @@
 | 
			
		|||
 * const [val, err] = it(x).must.be.an.array().unique().required().validate(x => x[0] != 'strawberry pasta').qed();
 | 
			
		||||
 * → xは配列でなければならず、かつ中身が重複していてはならない。この値を省略することはできない。そして配列の最初の要素が'strawberry pasta'という文字列であってはならない。
 | 
			
		||||
 *
 | 
			
		||||
 * ・意味的に矛盾するので、required と default は併用できません。
 | 
			
		||||
 *
 | 
			
		||||
 * ~糖衣構文~
 | 
			
		||||
 * const [val, err] = it(x).must.be.a.string().required().qed();
 | 
			
		||||
 * は
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue