File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
sketch_lustre_experimental
sketch/lustre/experimental/internals Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
2- "name" : " sketch_magic " ,
2+ "name" : " sketch_lustre_experimental " ,
33 "packageManager" : " yarn@4.3.1" ,
44 "scripts" : {
55 "clean" : " gleam clean"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ let _stylesheet = null
44
55export function setStyleSheet ( stylesheet ) {
66 _stylesheet = stylesheet
7- return stylesheet
7+ return new gleam . Ok ( stylesheet )
88}
99
1010export function getStyleSheet ( ) {
Original file line number Diff line number Diff line change 11import sketch
22
3- @ external ( javascript , "../../../../sketch_magic .ffi.mjs" , "setStyleSheet" )
3+ @ external ( javascript , "../../../../global .ffi.mjs" , "setStyleSheet" )
44pub fn set_stylesheet (
55 stylesheet : sketch . StyleSheet ,
66) -> Result ( sketch . StyleSheet , Nil ) {
77 Ok ( stylesheet )
88}
99
10- @ external ( javascript , "../../../../sketch_magic .ffi.mjs" , "getStyleSheet" )
10+ @ external ( javascript , "../../../../global .ffi.mjs" , "getStyleSheet" )
1111pub fn get_stylesheet ( ) -> Result ( sketch . StyleSheet , Nil ) {
1212 Error ( Nil )
1313}
You can’t perform that action at this time.
0 commit comments