GithubHelp home page GithubHelp logo

TypeScript 支持 about miment HOT 3 OPEN

momtboy avatar momtboy commented on June 1, 2024
TypeScript 支持

from miment.

Comments (3)

doodlewind avatar doodlewind commented on June 1, 2024 3

@momtboy 目前的源码很少且魔改了原型链,个人认为并不是很适合用 TS 重写。

但对 d.ts 的支持是很有意义的,不妨加入 Roadmap 😄

from miment.

noahlam avatar noahlam commented on June 1, 2024

对TS仅限于入门水平,不过据我了解,TS不是JS的超集吗?不能直接使用?
如果确实有这个需求,可以考虑做一个TS版的。

from miment.

WangShuXian6 avatar WangShuXian6 commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.