This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var VERSION='0.1' | ||
var FULL_VERSION='0.1' | ||
var AUTHORS='Microsoft' | ||
|
||
use-standard-lifecycle | ||
k-standard-goals | ||
|
||
default TYPESCRIPT_PROJECT_GLOB = "src/*/tsconfig.json" | ||
|
||
var nodeDirectory = '${Path.Combine(Directory.GetCurrentDirectory(), "bin", "nodejs")}' | ||
var nodeBin = '${ Path.Combine(nodeDirectory, "node_modules", ".bin") }' | ||
var localTsc = '${ Path.Combine(nodeBin, "tsc") }' | ||
var localTscExists = '${ File.Exists(localTsc) }' | ||
|
||
#install-tsc target='initialize' | ||
var installCommand = 'install ${E("KOREBUILD_NPM_INSTALL_OPTIONS")} --prefix "${nodeDirectory}" typescript' | ||
npm npmCommand="${installCommand}" if="!localTscExists" | ||
@{ | ||
E("PATH", $"{nodeBin}{Path.PathSeparator}{E("PATH")}"); | ||
Console.WriteLine("PATH:" + E("PATH")); | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Microsoft.AspNetCore.SignalR.Client.TS/EventSource.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
interface EventSourceOptions { | ||
withcredentials: boolean | ||
} | ||
|
||
declare class EventSource extends EventTarget { | ||
constructor(url: string); | ||
constructor(url: string, configuration: EventSourceOptions); | ||
|
||
readonly CLOSED: number; | ||
readonly CONNECTING: number; | ||
readonly OPEN: number; | ||
|
||
close(); | ||
|
||
onerror: (this: this, ev: ErrorEvent) => any; | ||
onmessage: (this: this, ev: MessageEvent) => any; | ||
onopen: (this: this, ev: Event) => any; | ||
addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void; | ||
addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void; | ||
addEventListener(type: "open", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; | ||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; | ||
|
||
readonly readyState: number; | ||
readonly url: string; | ||
} |
02c9813
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anurse move this to KoreBuild. aspnet/KoreBuild#135
02c9813
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? a) KoreBuild is probably going away and b) Does any other project actually use TypeScript yet?