Skip to content

Conversation

@zapp-brannigan-dota
Copy link

No description provided.

@rossengeorgiev
Copy link
Owner

Hi, could you provide context for the proposed changes? What they are? What they are for? How they are used? etc

@zapp-brannigan-dota
Copy link
Author

Hi, TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

The index.d.ts file contains declarations for the index.js file. When used in a TypeScript project these declarations enable things like type checking and autocomplete.

@p0358
Copy link

p0358 commented Nov 16, 2019

imo it should be more of something like this:

declare module 'simple-vdf' {
    export function parse(text: string): object;
    export function stringify(obj: object, pretty?: boolean): string;
    export function dump(obj: object, pretty?: boolean): string;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants