refactor(ShadowCss): add missing types

This commit is contained in:
Victor Berchet
2016-09-30 13:06:14 -07:00
committed by Chuck Jazdzewski
parent a6bb84e02b
commit a121136fae
2 changed files with 7 additions and 7 deletions

View File

@ -509,7 +509,7 @@ export class CssRule {
constructor(public selector: string, public content: string) {}
}
export function processRules(input: string, ruleCallback: Function): string {
export function processRules(input: string, ruleCallback: (rule: CssRule) => CssRule): string {
const inputWithEscapedBlocks = escapeBlocks(input);
let nextBlockIndex = 0;
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, function(...m: string[]) {