mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-27 00:15:09 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
8
handlebars/handlebars-1.0.0.d.ts
vendored
8
handlebars/handlebars-1.0.0.d.ts
vendored
@@ -47,13 +47,13 @@ interface HandlebarsRuntimeStatic extends HandlebarsCommon {
|
||||
templates: HandlebarsTemplates;
|
||||
}
|
||||
|
||||
declare module hbs {
|
||||
declare namespace hbs {
|
||||
class SafeString {
|
||||
constructor(str: string);
|
||||
static toString(): string;
|
||||
}
|
||||
|
||||
module Utils {
|
||||
namespace Utils {
|
||||
function escapeExpression(str: string): string;
|
||||
}
|
||||
}
|
||||
@@ -70,8 +70,8 @@ interface Logger {
|
||||
log(level: number, obj: string): void;
|
||||
}
|
||||
|
||||
declare module hbs {
|
||||
module AST {
|
||||
declare namespace hbs {
|
||||
namespace AST {
|
||||
interface IStripInfo {
|
||||
left?: boolean;
|
||||
right?: boolean;
|
||||
|
||||
10
handlebars/handlebars.d.ts
vendored
10
handlebars/handlebars.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
declare module Handlebars {
|
||||
declare namespace Handlebars {
|
||||
export function registerHelper(name: string, fn: Function, inverse?: boolean): void;
|
||||
export function registerHelper(name: Object): void;
|
||||
export function registerPartial(name: string, str: any): void;
|
||||
@@ -81,13 +81,13 @@ interface HandlebarsTemplates {
|
||||
[index: string]: HandlebarsTemplateDelegate;
|
||||
}
|
||||
|
||||
declare module hbs {
|
||||
declare namespace hbs {
|
||||
class SafeString {
|
||||
constructor(str: string);
|
||||
static toString(): string;
|
||||
}
|
||||
|
||||
module Utils {
|
||||
namespace Utils {
|
||||
function escapeExpression(str: string): string;
|
||||
}
|
||||
}
|
||||
@@ -104,8 +104,8 @@ interface Logger {
|
||||
log(level: number, obj: string): void;
|
||||
}
|
||||
|
||||
declare module hbs {
|
||||
module AST {
|
||||
declare namespace hbs {
|
||||
namespace AST {
|
||||
interface Node {
|
||||
type: string;
|
||||
loc: SourceLocation;
|
||||
|
||||
Reference in New Issue
Block a user