This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type FunctionReturnTypes<T> = { | |
[K in keyof T as T[K] extends Function ? K : never]: | |
T[K] extends (...args: any) => infer R ? R : never | |
}; | |
type ClassFieldsTypes<T> = { | |
[K in keyof T]: T[K] | |
} | |
type ManualClassMock<T> = Partial<FunctionReturnTypes<T>> | Partial<ClassFieldsTypes<T>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FOR ARCH LINUX# | |
sudo pacman -S nvidia #or nvidia-lts if linux-lts | |
sudo gedit /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf | |
#text | |
Section "OutputClass" | |
Identifier "intel" # or amd | |
MatchDriver "i915" # can be removed if amd | |
Driver "modesetting" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { KKMath } from 'kk-math'; | |
const template: string = ` | |
<h1>WebAssembly - Rust + TypeScript</h1> | |
<span></span> | |
<button>Calculate expression</button> | |
<p></p> | |
`; | |
export class App extends HTMLElement { |