mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Add typing for data-driven
This commit is contained in:
8
data-driven/data-driven-tests.ts
Normal file
8
data-driven/data-driven-tests.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/// <reference path="data-driven.d.ts" />
|
||||
|
||||
import data_driven = require('data-driven');
|
||||
|
||||
data_driven([
|
||||
{key:"value"},
|
||||
{key:"foobar"}
|
||||
],() => {});
|
||||
9
data-driven/data-driven.d.ts
vendored
Normal file
9
data-driven/data-driven.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Type definitions for data-driven.js
|
||||
// Project: https://github.com/fluentsoftware/data-driven
|
||||
// Definitions by: Adam Babcock <https://github.com/mrhen>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "data-driven" {
|
||||
function data_driven<T>(data:T[], callback:()=>any):any;
|
||||
export = data_driven
|
||||
}
|
||||
Reference in New Issue
Block a user