refactor: strictly typed

This commit is contained in:
harttle
2019-02-23 00:49:54 +08:00
parent 51f7e66f60
commit 5b6100d12b
86 changed files with 2630 additions and 2590 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export const ctx = {
posts: [{ category: 'foo' }, { category: 'bar' }]
}
export async function test (src, dst) {
export async function test (src: string, dst: string) {
const html = await liquid.parseAndRender(src, ctx)
return expect(html).to.equal(dst)
}