This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Make type recursively Required. | |
* Source: https://gist.github.com/gomezcabo/dff1d95fd1eb354f686d6606a511d7da | |
* @typeParam T - Type of object to make recursively Required | |
* @typeParam K - fields which content should not be Required. | |
* Field themselfs still be Required, but their child fields will not. | |
* @typeParam OverrideRecordsWithArrays - flag. | |
* If true will override all Record<string,MyObj> in type to MyObj[] (i.e. array of objects) | |
*/ | |
export type RecursiveRequiredOld<T, K, RecordsToArrays extends boolean> = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# autocompletion server. VS Code need it | |
go get -u github.com/mdempsky/gocode | |
# autocompletion for func arguments. | |
go get golang.org/x/tools/cmd/godoc | |
go get github.com/rogpeppe/godef |