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

Commit

Permalink
feat(wrapsassoptions): expose style fns
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Jul 10, 2018
1 parent 1e28392 commit 0c0145b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/interop/wrapSassOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import { cwrapSignature } from '../SassAsmModule';
*/
const wrapSassOptions = (cwrap: cwrapSignature) => ({
//int sass_option_get_precision (struct Sass_Options* options);
option_get_precision: cwrap<(sassOptionsPtr: number) => number>(`option_get_precision`, 'number', ['number']),
option_get_precision: cwrap<(sassOptionsPtr: number) => number>(`sass_option_get_precision`, 'number', ['number']),
//enum Sass_Output_Style sass_option_get_output_style (struct Sass_Options* options);
option_get_output_style: null,
option_get_output_style: cwrap<(sassOptionsPtr: number) => number>(`sass_option_get_output_style`, 'number', [
'number'
]),
//bool sass_option_get_source_comments (struct Sass_Options* options);
option_get_source_comments: cwrap<(sassOptionsPtr: number) => boolean>(`sass_option_get_source_comments`, 'number', [
'number'
Expand Down Expand Up @@ -55,7 +57,11 @@ const wrapSassOptions = (cwrap: cwrapSignature) => ({
'number'
]),
//void sass_option_set_output_style (struct Sass_Options* options, enum Sass_Output_Style output_style);
option_set_output_style: null,
option_set_output_style: cwrap<(sassOptionsPtr: number, style: number) => void>(
`sass_option_set_output_style`,
null,
['number', 'number']
),
//void sass_option_set_source_comments (struct Sass_Options* options, bool source_comments);
option_set_source_comments: null,
//void sass_option_set_source_map_embed (struct Sass_Options* options, bool source_map_embed);
Expand Down

0 comments on commit 0c0145b

Please sign in to comment.