Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit cda8b61

Browse files
committed
added opt-handler gen script
1 parent 3459471 commit cda8b61

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/scripts/opt-handler-gen.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
eval 'mkdir $1 && touch ./$1/$1-handler.ts && touch ./$1/$1-handler.d.ts'
2+
eval 'cat <<EOT >> ./$1/$1-handler.ts
3+
import { optionsBuilder } from "../helpers/helpers";
4+
import { isAndroid } from "@nativescript/core";
5+
6+
export function $1Handler($1Options) {
7+
const $1 = isAndroid ? new com.highsoft.highcharts.common.hichartsclasses.HI$1() : new HI$1();
8+
9+
const $1Schema = {
10+
};
11+
12+
return optionsBuilder($1Schema, $1Options, $1);
13+
}
14+
EOT'

0 commit comments

Comments
 (0)