mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-05 16:10:11 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+2
-2
@@ -77,7 +77,7 @@ declare var Buffer: {
|
||||
* GLOBAL INTERFACES *
|
||||
* *
|
||||
************************************************/
|
||||
declare module NodeJS {
|
||||
declare namespace NodeJS {
|
||||
export interface ErrnoException extends Error {
|
||||
errno?: number;
|
||||
code?: string;
|
||||
@@ -1324,7 +1324,7 @@ declare module "util" {
|
||||
|
||||
declare module "assert" {
|
||||
function internal (value: any, message?: string): void;
|
||||
module internal {
|
||||
namespace internal {
|
||||
export class AssertionError implements Error {
|
||||
name: string;
|
||||
message: string;
|
||||
|
||||
@@ -114,7 +114,7 @@ request.abort();
|
||||
////////////////////////////////////////////////////
|
||||
/// Http tests : http://nodejs.org/api/http.html
|
||||
////////////////////////////////////////////////////
|
||||
module http_tests {
|
||||
namespace http_tests {
|
||||
// Status codes
|
||||
var code = 100;
|
||||
var codeMessage = http.STATUS_CODES['400'];
|
||||
|
||||
Vendored
+2
-2
@@ -77,7 +77,7 @@ declare var Buffer: {
|
||||
* GLOBAL INTERFACES *
|
||||
* *
|
||||
************************************************/
|
||||
declare module NodeJS {
|
||||
declare namespace NodeJS {
|
||||
export interface ErrnoException extends Error {
|
||||
errno?: number;
|
||||
code?: string;
|
||||
@@ -1247,7 +1247,7 @@ declare module "util" {
|
||||
|
||||
declare module "assert" {
|
||||
function internal (value: any, message?: string): void;
|
||||
module internal {
|
||||
namespace internal {
|
||||
export class AssertionError implements Error {
|
||||
name: string;
|
||||
message: string;
|
||||
|
||||
@@ -209,7 +209,7 @@ request.abort();
|
||||
////////////////////////////////////////////////////
|
||||
/// Http tests : http://nodejs.org/api/http.html
|
||||
////////////////////////////////////////////////////
|
||||
module http_tests {
|
||||
namespace http_tests {
|
||||
// Status codes
|
||||
var code = 100;
|
||||
var codeMessage = http.STATUS_CODES['400'];
|
||||
@@ -251,7 +251,7 @@ console.log(unescaped);
|
||||
/// path tests : http://nodejs.org/api/path.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module path_tests {
|
||||
namespace path_tests {
|
||||
|
||||
path.normalize('/foo/bar//baz/asdf/quux/..');
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -158,7 +158,7 @@ declare var Buffer: {
|
||||
* GLOBAL INTERFACES *
|
||||
* *
|
||||
************************************************/
|
||||
declare module NodeJS {
|
||||
declare namespace NodeJS {
|
||||
export interface ErrnoException extends Error {
|
||||
errno?: number;
|
||||
code?: string;
|
||||
@@ -1779,7 +1779,7 @@ declare module "util" {
|
||||
|
||||
declare module "assert" {
|
||||
function internal (value: any, message?: string): void;
|
||||
module internal {
|
||||
namespace internal {
|
||||
export class AssertionError implements Error {
|
||||
name: string;
|
||||
message: string;
|
||||
|
||||
+8
-8
@@ -39,7 +39,7 @@ assert.doesNotThrow(() => {
|
||||
/// Events tests : http://nodejs.org/api/events.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module events_tests {
|
||||
namespace events_tests {
|
||||
let emitter: events.EventEmitter;
|
||||
let event: string;
|
||||
let listener: Function;
|
||||
@@ -162,7 +162,7 @@ function bufferTests() {
|
||||
|
||||
// fill returns the input buffer.
|
||||
b.fill('a').fill('b');
|
||||
|
||||
|
||||
{
|
||||
let buffer = new Buffer('123');
|
||||
let index: number;
|
||||
@@ -295,7 +295,7 @@ request.abort();
|
||||
////////////////////////////////////////////////////
|
||||
/// Http tests : http://nodejs.org/api/http.html
|
||||
////////////////////////////////////////////////////
|
||||
module http_tests {
|
||||
namespace http_tests {
|
||||
// Status codes
|
||||
var code = 100;
|
||||
var codeMessage = http.STATUS_CODES['400'];
|
||||
@@ -325,7 +325,7 @@ module http_tests {
|
||||
/// TTY tests : http://nodejs.org/api/tty.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module tty_tests {
|
||||
namespace tty_tests {
|
||||
let rs: tty.ReadStream;
|
||||
let ws: tty.WriteStream;
|
||||
|
||||
@@ -352,7 +352,7 @@ ds.send(new Buffer("hello"), 0, 5, 5000, "127.0.0.1", (error: Error, bytes: numb
|
||||
///Querystring tests : https://nodejs.org/api/querystring.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module querystring_tests {
|
||||
namespace querystring_tests {
|
||||
type SampleObject = {a: string; b: number;}
|
||||
|
||||
{
|
||||
@@ -395,7 +395,7 @@ module querystring_tests {
|
||||
/// path tests : http://nodejs.org/api/path.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module path_tests {
|
||||
namespace path_tests {
|
||||
|
||||
path.normalize('/foo/bar//baz/asdf/quux/..');
|
||||
|
||||
@@ -534,7 +534,7 @@ module path_tests {
|
||||
/// readline tests : https://nodejs.org/api/readline.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module readline_tests {
|
||||
namespace readline_tests {
|
||||
let rl: readline.ReadLine;
|
||||
|
||||
{
|
||||
@@ -638,7 +638,7 @@ childProcess.spawnSync("echo test");
|
||||
/// os tests : https://nodejs.org/api/os.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
module os_tests {
|
||||
namespace os_tests {
|
||||
{
|
||||
let result: string;
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -165,7 +165,7 @@ declare var Buffer: {
|
||||
* GLOBAL INTERFACES *
|
||||
* *
|
||||
************************************************/
|
||||
declare module NodeJS {
|
||||
declare namespace NodeJS {
|
||||
export interface ErrnoException extends Error {
|
||||
errno?: number;
|
||||
code?: string;
|
||||
@@ -2006,7 +2006,7 @@ declare module "util" {
|
||||
|
||||
declare module "assert" {
|
||||
function internal (value: any, message?: string): void;
|
||||
module internal {
|
||||
namespace internal {
|
||||
export class AssertionError implements Error {
|
||||
name: string;
|
||||
message: string;
|
||||
|
||||
Reference in New Issue
Block a user