明天的太阳

导航

随笔分类 -  typescript

TypeScript 高级类型
摘要:类型的且运算 interface A { a1: string a2: string } interface B { b1: number b2: string } let c: A & B = { a1: 'hi', a2: 'hello', b1: 2, b2: 'a' } // react c 阅读全文

posted @ 2023-02-12 23:53 东方来客 阅读(49) 评论(0) 推荐(0)

手动配置webpack4、Vue2.7、Typescript、Sass
摘要:手动配置webpack4 vue ts sass 1. 安装 初始化webpack 安装 npm init -y // 创建默认的package.json npm install webpack@4 webpack-cli@3 --save-dev 创建目录 webpack-demo |- pack 阅读全文

posted @ 2022-12-17 15:24 东方来客 阅读(1049) 评论(0) 推荐(0)