摘要:
interface SquareConfig { color?: string; width?: number; [propName: string]: any; } function asd(opt: SquareConfig): any { } asd({color: 'red', width: 阅读全文
摘要:
cookie-parser Docs npm i cookie-parser main.ts import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import * as cooki 阅读全文
摘要:
"editor.mouseWheelZoom": true 阅读全文
摘要:
Docs: "https://docs.nestjs.com/websockets/gateways" λ yarn add @nestjs/websockets λ nest g ga events events.gateway.js app.module.ts 客户端 监听进入与离开 impor 阅读全文
摘要:
jest Enzyme 文档 为什么要写测试 单元测试(unit testing)指的是以软件的单元(unit)为单位,对软件进行测试。单元可以是一个函数,也可以是一个模块或组件。它的基本特征就是,只要输入不变,必定返回同样的输出。 单元测试的步骤如下 准备所有的测试条件 it('test a') 阅读全文
摘要:
https://www.cnblogs.com/panwenbin-logs/p/8007348.html github 文档 docker 官方文档 Dockerfile 用于制作docker镜像的设计稿 # 使用基础镜像,本地没有会从registry拉取,from必须是第一个指令 from pe 阅读全文
摘要:
"mdn" 前端代码 "github" 点击上传 async function main() { const l = console.log let fileEle = document.querySelector(' a') fileEle.onchange = e = { let files = 阅读全文
摘要:
登录 查看当前所在位置包的信息 查看npm配置 λ npm config list λ npm config set registry http://registry.npmjs.org/ // 把原来配置的淘宝源切换回npm λ npm whoami // 切换后再看下当前登录的用户 发布 再次发 阅读全文