forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatted types/r* packages with dprint (DefinitelyTyped#66539)
* Formatted types/r* packages with dprint * Manually correct ts-expect-error directives * Fixed introduced issues * Fix introduced issues * A few assorted fixes * Reset troublemaker packages
- Loading branch information
1 parent
02f5cf5
commit 964e498
Showing
3,103 changed files
with
82,652 additions
and
77,219 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
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
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
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 |
---|---|---|
@@ -1,32 +1,41 @@ | ||
|
||
import rabbit = require('rabbit.js'); | ||
import rabbit = require("rabbit.js"); | ||
var context = rabbit.createContext(); | ||
|
||
context.on('ready', function () { console.log('ready'); }); | ||
context.on("ready", function() { | ||
console.log("ready"); | ||
}); | ||
|
||
var pub = context.socket<rabbit.PubSocket>('PUB'); | ||
var sub = context.socket<rabbit.SubSocket>('SUB'); | ||
var push = context.socket<rabbit.PushSocket>('PUSH'); | ||
var pull = context.socket<rabbit.PullSocket>('PULL'); | ||
var req = context.socket<rabbit.ReqSocket>('REQ'); | ||
var rep = context.socket<rabbit.RepSocket>('REP'); | ||
var task = context.socket<rabbit.TaskSocket>('TASK'); | ||
var worker = context.socket<rabbit.WorkerSocket>('WORKER'); | ||
var pub = context.socket<rabbit.PubSocket>("PUB"); | ||
var sub = context.socket<rabbit.SubSocket>("SUB"); | ||
var push = context.socket<rabbit.PushSocket>("PUSH"); | ||
var pull = context.socket<rabbit.PullSocket>("PULL"); | ||
var req = context.socket<rabbit.ReqSocket>("REQ"); | ||
var rep = context.socket<rabbit.RepSocket>("REP"); | ||
var task = context.socket<rabbit.TaskSocket>("TASK"); | ||
var worker = context.socket<rabbit.WorkerSocket>("WORKER"); | ||
|
||
pub.connect('chat'); | ||
pub.write('hello', 'utf8'); | ||
pub.connect("chat"); | ||
pub.write("hello", "utf8"); | ||
pub.close(); | ||
|
||
sub.connect('chat'); | ||
sub.on('data', function (msg: string) { console.log(msg); }); | ||
sub.connect("chat"); | ||
sub.on("data", function(msg: string) { | ||
console.log(msg); | ||
}); | ||
sub.close(); | ||
|
||
rep.setEncoding('utf8'); | ||
rep.on('data', function (msg: string) { rep.write('msg', 'utf8'); }); | ||
rep.connect('uppercase'); | ||
req.connect('uppercase', function () { req.pipe(process.stdout); }); | ||
rep.setEncoding("utf8"); | ||
rep.on("data", function(msg: string) { | ||
rep.write("msg", "utf8"); | ||
}); | ||
rep.connect("uppercase"); | ||
req.connect("uppercase", function() { | ||
req.pipe(process.stdout); | ||
}); | ||
|
||
push.connect('items', function () { pull.pipe(push); }); | ||
push.connect("items", function() { | ||
pull.pipe(push); | ||
}); | ||
push.close(); | ||
pull.connect('items', function () {}); | ||
pull.connect("items", function() {}); | ||
pull.close(); |
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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import RabbitMqSchema = require('rabbitmq-schema'); | ||
import RabbitMqSchema = require("rabbitmq-schema"); | ||
|
||
const topology = {}; | ||
|
||
const rabbitSchema = new RabbitMqSchema({}, ''); | ||
const rabbitSchema = new RabbitMqSchema({}, ""); | ||
|
||
rabbitSchema.getExchanges(); | ||
rabbitSchema.getBindings(); | ||
rabbitSchema.getQueues(); | ||
rabbitSchema.getDirectBindings(); | ||
|
||
rabbitSchema.getQueueByName('images.jpeg.get'); | ||
rabbitSchema.getExchangeByName('images'); | ||
rabbitSchema.getQueueByName("images.jpeg.get"); | ||
rabbitSchema.getExchangeByName("images"); | ||
|
||
rabbitSchema.validate(topology); | ||
rabbitSchema.validateMessage('images', 'images.jpeg.get', {testMsg: 'ok'}); | ||
rabbitSchema.validateMessage("images", "images.jpeg.get", { testMsg: "ok" }); |
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
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
Oops, something went wrong.