dempfi / ayu

🎨🖌 Modern Sublime Text theme
MIT License
4.29k stars 322 forks source link

Add type fix for source.zig storage.type #270

Closed Manuzor closed 2 years ago

Manuzor commented 2 years ago

A small fix to better support zig syntax.

I have to note that I manually edited the sublime-color-scheme files because I was not able to make the build.ts script run on my end. I was getting the following errors:

error TS6059: File '<PATH>/ayu/test/TSX.tsx' is not under 'rootDir' '<PATH>/ayu/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Matched by include pattern '**/*' in 'tsconfig.json'

error TS6059: File '<PATH>/ayu/test/TypeScript.ts' is not under 'rootDir' '<PATH>/ayu/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Matched by include pattern '**/*' in 'tsconfig.json'

test/TypeScript.ts:16:53 - error TS4020: 'extends' clause of exported class 'Bot' has or is using private name 'OtherClass'.

16 export abstract class Bot<BotMessage = any> extends OtherClass {
                                                       ~~~~~~~~~~

Found 3 errors in the same file, starting at: test/TypeScript.ts:16

And even after I deleted the test directory, it complained that it can't find the module 'fs' and some other dependencies, so I just gave up. I apologize but I'm completely new to TS and I didn't find a guide in the README or a CONTRIB file.

dempfi commented 2 years ago

Hi @Manuzor, thx for the contribution! I’ll look into what’s the deal with the build setup

Manuzor commented 2 years ago

I’ll look into what’s the deal with the build setup

Thanks! But as said, I'm completely new to TS, so it may just me not having set up things correctly on my end. I've installed tsc via npm as a standalone tool and then tried running tsc --project tsconfig.json on the commandline. This is on windows, btw, with tsc version 4.7.4. Hope that helps!