(runtimeIndex: string | undefined)
| 7 | }; |
| 8 | |
| 9 | const shouldUpdate = (runtimeIndex: string | undefined) => { |
| 10 | if (runtimeIndex === undefined) { |
| 11 | return true; |
| 12 | } |
| 13 | return compareRuntimes(getCurrentRuntimeIndex(), parseInt(runtimeIndex)) >= 1; // 1 or larger means the current is newer, 0 means the same, -1 means the resource's runtime is newer |
| 14 | }; |
| 15 | |
| 16 | const createStyle = (content: string, name: string, value = "", theme?: string) => { |
| 17 | const currentRuntimeIndex = getCurrentRuntimeIndex(); |
no test coverage detected
searching dependent graphs…