Workbench project thread!
I finally got around to ordering all the extruded aluminum last week to build a new workbench for my table saw. I cadded the metric dimensions in Fusion 360. Importing the models of the actual 4080 extruded aluminum makes it lag a lot.
My power’s really low, so this may be the last image I can send. Don’t worry about me though: my time here has been both productive and serene. If I can keep talking to my mission team, I will – but I’ll be signing off here soon. Thanks for staying with me.
@stayfun_ For the second question, I specifically need it to be a typescript interface, which I got around by doing
export enum A {
VALUE1 = 'a',
VALUE2 = 'b',
}
export interface EVENTS {
[A.VALUE1]: () => void,
[A.VALUE2]: () => void,
}
Am learning typescript and slightly confuzzled by some of the language designs. I started to learn how to use its typing system and interfaces by migrating one of my old projects, but lots of googling is making me more confused `/
@stayfun_ Unsurprisingly though, it's incorrect in this case. In the first example, the typescript compiler actually isn't smart enough for this:
const a = m.get('foo') will still be type number | undefined
And it seems like the only way I can do this is with an intermediate object
const { A, B } = whatever the enum was
interface E {
[A]: something
[B]: something
}
I want to do:
enum {
A = 'a',
B = 'b',
}
interface E {
a: () => void,
b: some other type
}
and enforce that E's keys are explicitly the enum values so I can reference the enum types using the variable names without caring about what the literal is