Giter Club home page Giter Club logo

Comments (11)

mrsweaters avatar mrsweaters commented on May 31, 2024

I don't use Typescript, so any help or direction on this would be much appreciated. This would be a great addition. Thanks!

from tribute.

BorntraegerMarc avatar BorntraegerMarc commented on May 31, 2024

any update on this? :)

from tribute.

mrsweaters avatar mrsweaters commented on May 31, 2024

@BorntraegerMarc Thanks for checking in! I'm not quite sure how to write a typing but it doesn't seem too complicated. I can take a stab at it.

from tribute.

BorntraegerMarc avatar BorntraegerMarc commented on May 31, 2024

Thanks. Let me know if you need help

from tribute.

TetianaP avatar TetianaP commented on May 31, 2024

Since TypeScript 1.8, it's allowed to include .js files with --allowJs flag.
See https://blogs.msdn.microsoft.com/typescript/2016/01/28/announcing-typescript-1-8-beta/

Set "compilerOptions": { "allowJs": true },
depending on your project structure include tribute library: "include": ["node_modules/tributejs/dist/tribute.js"],
now you can use Tribute, just add import {default as Tribute} from 'tributejs/dist/tribute';

from tribute.

BorntraegerMarc avatar BorntraegerMarc commented on May 31, 2024

Yes @TetianaP but it would be cool to have some definitely typed support for codin :)

from tribute.

mrsweaters avatar mrsweaters commented on May 31, 2024

@TetianaP @BorntraegerMarc I've added a PR that adds a typings file to the project. Let me know if I need to make any changes! #59

from tribute.

BorntraegerMarc avatar BorntraegerMarc commented on May 31, 2024

@mrsweaters left my comments in the PR. Thx!

from tribute.

mrsweaters avatar mrsweaters commented on May 31, 2024

Merged! #59

from tribute.

BorntraegerMarc avatar BorntraegerMarc commented on May 31, 2024

Sorry to come back at you this late but wouldn't it make more sense to publish the typings here https://github.com/DefinitelyTyped/DefinitelyTyped ?

I thought this would be standard practice...

from tribute.

mrsweaters avatar mrsweaters commented on May 31, 2024

@BorntraegerMarc Ah, good call. I'll be sure to add this to the DefinitelyTyped repo.

from tribute.

Related Issues (20)

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.