mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
13 lines
397 B
TypeScript
13 lines
397 B
TypeScript
/// <reference path="azure.d.ts" />
|
|
|
|
|
|
import Azure = module("azure");
|
|
|
|
var ts = new Azure.TableService();
|
|
|
|
ts.createTable("babbsies", function (error, table) {
|
|
ts.insertEntity(table.TableName, { PartitionKey: "Midwest", RowKey: "1", Name: "Tommy", Color: "Blue" },
|
|
function () {
|
|
ts.deleteEntity(table.TableName, { PartitionKey: "Midwest", RowKey: "1" });
|
|
});
|
|
}); |