add types

This commit is contained in:
Kim Biesbjerg 2019-06-25 13:09:15 +02:00
parent 98b84447c7
commit c38ca59d43
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ export class JsonCompiler implements CompilerInterface {
public indentation: string = '\t';
public extension = 'json';
public extension: string = 'json';
public constructor(options?: any) {
if (options && typeof options.indentation !== 'undefined') {

View File

@ -5,14 +5,14 @@ import * as gettext from 'gettext-parser';
export class PoCompiler implements CompilerInterface {
public extension = 'po';
public extension: string = 'po';
/**
* Translation domain
*/
public domain = '';
public domain: string = '';
public constructor(options?: any) { }
public constructor(options?: any) {}
public compile(collection: TranslationCollection): string {
const data = {