@@ -23,6 +23,22 @@ interface SassOptionsInterface {
23
23
*/
24
24
isIndentedSyntaxSrc : boolean ;
25
25
26
+ /**
27
+ * Property accessor to `sass_option_(get|set)_omit_source_map_url`
28
+ */
29
+ omitMapComment : boolean ;
30
+
31
+ /**
32
+ * Push include path for compilation.
33
+ * @param {string } includePath path to be inlcluded
34
+ */
35
+ addIncludePath ( includePath : string ) : void ;
36
+ /**
37
+ * Push include path for plugin.
38
+ * @param {string } pluginPath path to be inlcluded
39
+ */
40
+ addPluginPath ( pluginPath : string ) : void ;
41
+
26
42
/**
27
43
* Release allocated memory with created instance.
28
44
*/
@@ -98,7 +114,25 @@ class SassOptions implements SassOptionsInterface {
98
114
this . cwrapOptions . option_set_is_indented_syntax_src ( this . sassOptionsPtr , isIndented ) ;
99
115
}
100
116
117
+ public get omitMapComment ( ) : boolean {
118
+ return ! ! this . cwrapOptions . option_get_omit_source_map_url ( this . sassOptionsPtr ) ;
119
+ }
120
+
121
+ public set omitMapComment ( isOmitted : boolean ) {
122
+ this . cwrapOptions . option_set_omit_source_map_url ( this . sassOptionsPtr , isOmitted ) ;
123
+ }
124
+
125
+ public addIncludePath ( _includePath : string ) : void {
126
+ //TODO: allocate string, mount path
127
+ //this.cwrapOptions.option_push_include_path(this.sassOptionsPtr);
128
+ }
129
+
130
+ public addPluginPath ( _pluginPath : string ) : void {
131
+ //this.cwrapOptions.option_push_plugin_path(this.sassOptionsPtr);
132
+ }
133
+
101
134
public dispose ( ) : void {
135
+ //TODO: unmount path
102
136
this . cwrapCtx . delete_options ( this . sassOptionsPtr ) ;
103
137
log ( `SassOptions: disposed instance` ) ;
104
138
}
0 commit comments