Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Promise<unknown> and other things #81

Open
ghost opened this issue Feb 24, 2020 · 7 comments
Open

Promise<unknown> and other things #81

ghost opened this issue Feb 24, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Feb 24, 2020

Hi
I have a .d.ts file containing Promise<unknown> and it fails
but when I change the code to Promise<any> it's ok

I'm trying to understand why so I found that unknown was introduced in typescript 3.
So my question is, is js_facade_gen compatible only with ts 2 or I else I need to change a config somewhere?

@ghost
Copy link
Author

ghost commented Feb 24, 2020

re-exports must have a module URL (export x from "./y")

is a common occurence

@ghost
Copy link
Author

ghost commented Feb 25, 2020

export {};

@ghost
Copy link
Author

ghost commented Feb 25, 2020

object

@ghost
Copy link
Author

ghost commented Feb 25, 2020

export default

@ghost
Copy link
Author

ghost commented Feb 29, 2020

Promise fails

@ghost
Copy link
Author

ghost commented Mar 2, 2020

are enum like this parsed correctly:

export enum Direction {
    Inbound = "inbound",
    Outbound = "outbound"
}

export declare enum VertoMethod {
    Invite = "verto.invite",
    Attach = "verto.attach",
    Answer = "verto.answer",
    Info = "verto.info",
    Display = "verto.display",
    Media = "verto.media",
    Event = "verto.event",
    Bye = "verto.bye",
    Punt = "verto.punt",
    Broadcast = "verto.broadcast",
    Subscribe = "verto.subscribe",
    Unsubscribe = "verto.unsubscribe",
    ClientReady = "verto.clientReady",
    Modify = "verto.modify"
}

export declare enum State {
    New = 0,
    Requesting = 1,
    Trying = 2,
    Recovering = 3,
    Ringing = 4,
    Answering = 5,
    Early = 6,
    Active = 7,
    Held = 8,
    Hangup = 9,
    Destroy = 10,
    Purge = 11
}

@ghost
Copy link
Author

ghost commented Mar 2, 2020

@JS()
library a.b.c.d;

gives notice Name libraries using 'lowercase_with_underscores'

@ghost ghost changed the title Promise<unknown> Promise<unknown> and other things Mar 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

0 participants