-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" insteadDocsThe issue relates to how you learn TypeScriptThe issue relates to how you learn TypeScript
Description
As I write, the handbook says that the following usage:
zooKeeper.workSchedule = "morning";
zooKeeper(giraffeCage);
should have the following TypeScript declaration
// Note: Function must precede module
function zooKeeper(cage: AnimalCage);
module zooKeeper {
var workSchedule: string;
}
That doesn't work AFAIK. I believe the recommendation should be:
interface zooKeeper {
(cage:AnimalCage) : void;
workSchedule: string;
}
Metadata
Metadata
Assignees
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" insteadDocsThe issue relates to how you learn TypeScriptThe issue relates to how you learn TypeScript