Skip to content

Commit ab76dbf

Browse files
committed
getColors types
1 parent 1795223 commit ab76dbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib_src/misc/colors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use babel'
22

3-
export function getColors(selectors) {
3+
export function getColors(selectors: { [P: string]: string }) {
44
// const grammar = atom.grammars.grammarForScopeName("source.julia") // TODO ?
55

6-
const styled = {}
7-
const color = {}
86
const div = document.createElement('div')
97
div.classList.add('editor', 'editor-colors', 'julia-syntax-color-selector')
8+
const styled: { [P: string]: HTMLSpanElement } = {}
9+
const color: { [P: string]: string } = {}
1010

1111
for (const style in selectors) {
1212
const child = document.createElement('span')

0 commit comments

Comments
 (0)