Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Provide More Documentation and Examples for writing definition files.  #182

Open
@jeevan-reddy

Description

@jeevan-reddy

// Note: Function must precede module

function zooKeeper(cage: AnimalCage);
module zooKeeper {
    var workSchedule: string;
}

the above code is taken from Typescriptlang.org. Writing .d.ts files examples section.
when i place the code in a .d.ts file i am getting error "Duplicate identifier" ?

please provide typing for a in following case:

var a= function(){};
a.prototype = {
fn:function(name)
{
return name;
}
} 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions