Skip to content

Instantly share code, notes, and snippets.

View xwartz's full-sized avatar
🎯
Focusing

xwartz xwartz

🎯
Focusing
View GitHub Profile
@xwartz
xwartz / interview-type.ts
Created May 27, 2021 05:23
interview-type
/**
*
* Complete the following 2 types of 'CreateRequest' and 'GetParams'.
* 完善下述两个类型 'CreateRequest' 和 'GetParams'。
*
**/
// improve type of CreateRequest
type CreateRequest = unknown
@xwartz
xwartz / Interview-node.ts
Created May 27, 2021 05:22
Interview-node
/**
*
* Create a function that meets the following requirements:
* - Read files and folders from the specified directory.
* - Collects metadata about files or folders and returns it as an array.
* - Note whether the file has read access.
*
* 创建一个符合下述要求的函数:
* - 读取指定目录下的文件或文件夹,包含子文件夹
* - 收集文件的元信息并作为数组返回