Giter Site home page Giter Site logo

Comments (5)

Hookyns avatar Hookyns commented on June 15, 2024 1

Done.

import { getType } from "tst-reflect";

const promiseType = getType<Promise<string>>();

if (promiseType.isPromise())
{
	console.log(promiseType.getTypeArguments()[0].isString()); // > true
}

I've just released new versions [email protected] and [email protected].
Try it. 🙂

from tst-reflect.

Hookyns avatar Hookyns commented on June 15, 2024

Hello @bjsi,
I'm currently working on a big update with a lot of changes including support of all the native types (including Promise, Symbol, TypedArrays etc.) more info about upcoming update is on my twitter; and I will tweet the progress. It will take me about week to finish it.
But it will be quite easy to fix the Promise in current version IMHO. I think I can publish fix in 30 minutes,.. challenge accepted! 😄

Anyway, we are open to contributions. 🙂 But I have to finish that update first. Contributions would be unmergeable cuz of that.

from tst-reflect.

bjsi avatar bjsi commented on June 15, 2024

Amazing thanks @Hookyns :)

from tst-reflect.

bjsi avatar bjsi commented on June 15, 2024

Wow you are the best :) many thanks

from tst-reflect.

Hookyns avatar Hookyns commented on June 15, 2024

I thank you. 🙂
You've just improved this project. I focus on the big upcoming update so I miss some issues.

from tst-reflect.

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.