mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 01:10:08 +00:00
6
swag/swag-tests.ts
Normal file
6
swag/swag-tests.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference path="swag.d.ts" />
|
||||
|
||||
import Handlebars = require('handlebars');
|
||||
import Swag = require('swag');
|
||||
|
||||
Swag.registerHelpers(Handlebars);
|
||||
16
swag/swag.d.ts
vendored
Normal file
16
swag/swag.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Type definitions for swag 0.6.1
|
||||
// Project: https://github.com/elving/swag
|
||||
// Definitions by: Shogo Iwano <https://github.com/shiwano>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../handlebars/handlebars.d.ts" />
|
||||
|
||||
interface SwagStatic {
|
||||
registerHelpers(handlebars: typeof Handlebars): void;
|
||||
}
|
||||
|
||||
declare var Swag: SwagStatic;
|
||||
|
||||
declare module 'swag' {
|
||||
export = Swag;
|
||||
}
|
||||
Reference in New Issue
Block a user