mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add swag
This commit is contained in:
parent
dd4398796d
commit
8846c6cddc
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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user