mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
TYPESAFETY: Strict internal typing for AugmentationName (#608)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import type { AugmentationName } from "./Enums";
|
||||
|
||||
export class PlayerOwnedAugmentation {
|
||||
level = 1;
|
||||
name = "";
|
||||
name: AugmentationName;
|
||||
|
||||
constructor(name = "") {
|
||||
constructor(name: AugmentationName) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user