refactor type
This commit is contained in:
		
							parent
							
								
									6b312f755e
								
							
						
					
					
						commit
						56600ba1df
					
				
					 12 changed files with 19 additions and 19 deletions
				
			
		|  | @ -14,12 +14,12 @@ export const meta = { | |||
| 	params: { | ||||
| 		query: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any | ||||
| 			default: null | ||||
| 		}, | ||||
| 
 | ||||
| 		host: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any | ||||
| 			default: null | ||||
| 		}, | ||||
| 
 | ||||
| 		limit: { | ||||
|  |  | |||
|  | @ -14,7 +14,7 @@ export const meta = { | |||
| 	params: { | ||||
| 		query: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any | ||||
| 			default: null | ||||
| 		}, | ||||
| 
 | ||||
| 		limit: { | ||||
|  |  | |||
|  | @ -17,12 +17,12 @@ export const meta = { | |||
| 
 | ||||
| 		level: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any | ||||
| 			default: null | ||||
| 		}, | ||||
| 
 | ||||
| 		domain: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any | ||||
| 			default: null | ||||
| 		} | ||||
| 	}, | ||||
| 
 | ||||
|  |  | |||
|  | @ -26,7 +26,7 @@ export const meta = { | |||
| 		// TODO: Check it is valid url
 | ||||
| 		callbackUrl: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 	}, | ||||
| 
 | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ export const meta = { | |||
| 
 | ||||
| 		folderId: { | ||||
| 			validator: $.optional.nullable.type(ID), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		type: { | ||||
|  |  | |||
|  | @ -24,12 +24,12 @@ export const meta = { | |||
| 	params: { | ||||
| 		folderId: { | ||||
| 			validator: $.optional.nullable.type(ID), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		name: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		isSensitive: { | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ export const meta = { | |||
| 
 | ||||
| 		folderId: { | ||||
| 			validator: $.optional.nullable.type(ID), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 	}, | ||||
| 
 | ||||
|  |  | |||
|  | @ -26,7 +26,7 @@ export const meta = { | |||
| 
 | ||||
| 		folderId: { | ||||
| 			validator: $.optional.nullable.type(ID), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		isSensitive: { | ||||
|  | @ -36,12 +36,12 @@ export const meta = { | |||
| 
 | ||||
| 		comment: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		marker: { | ||||
| 			validator: $.optional.nullable.str, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		force: { | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ export const meta = { | |||
| 
 | ||||
| 		folderId: { | ||||
| 			validator: $.optional.nullable.type(ID), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		} | ||||
| 	}, | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ export const meta = { | |||
| 
 | ||||
| 		parentId: { | ||||
| 			validator: $.optional.nullable.type(ID), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 	}, | ||||
| 
 | ||||
|  |  | |||
|  | @ -50,7 +50,7 @@ export const meta = { | |||
| 					&& length(text.trim()) <= maxNoteTextLength | ||||
| 					&& Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH	// DB limit
 | ||||
| 			), | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		cw: { | ||||
|  |  | |||
|  | @ -23,12 +23,12 @@ export const meta = { | |||
| 
 | ||||
| 		reply: { | ||||
| 			validator: $.optional.nullable.bool, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		renote: { | ||||
| 			validator: $.optional.nullable.bool, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		withFiles: { | ||||
|  | @ -37,7 +37,7 @@ export const meta = { | |||
| 
 | ||||
| 		poll: { | ||||
| 			validator: $.optional.nullable.bool, | ||||
| 			default: null as any, | ||||
| 			default: null, | ||||
| 		}, | ||||
| 
 | ||||
| 		sinceId: { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue