Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
feat(sassloader): expose getversion interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Jul 10, 2018
1 parent 5310653 commit 7ae4abb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/sassLoader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { getVersion } from './interop/miscellaneous';
import { SassAsmModule } from './SassAsmModule';
import { SassFactory } from './SassFactory';

/**
* Create SassFactory interface object through loaded libass wasm module.
*
* @param {SassAsmModule} asmModule wasm module
* @returns {SassFactory}
*/
export const sassLoader = (asmModule: SassAsmModule): SassFactory => {
return {
getVersion: getVersion(asmModule)
};
};

0 comments on commit 7ae4abb

Please sign in to comment.