Comments (3)
@momtboy 目前的源码很少且魔改了原型链,个人认为并不是很适合用 TS 重写。
但对 d.ts
的支持是很有意义的,不妨加入 Roadmap 😄
from miment.
对TS仅限于入门水平,不过据我了解,TS不是JS的超集吗?不能直接使用?
如果确实有这个需求,可以考虑做一个TS版的。
from miment.
import 方式引入 在 typescript 中使用报错
import miment from 'miment'
Uncaught (in promise) TypeError: miment_1.default is not a function
改为 require 方式引入就好了
const miment =require('miment')
from miment.
Related Issues (14)
- Unit test support
- distance API design HOT 1
- README 的第一个例子可能写错了
- Lint support
- isBetween API
- 没有做ios的兼容啊 HOT 3
- 和 Day.js 的比较 HOT 1
- 升级到 0.06 后报错 HOT 1
- 项目中若使用UglifyJs在一起会报错 HOT 3
- 格式化的BUG HOT 1
- 我在IE10中使用miment遇到了问题 HOT 2
- 与微信同声传译冲突 HOT 6
- miment有类似dayjs的转化为‘刚刚’‘几分钟前’‘几天前’的方法吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miment.