blob: 7b72259e0b7b7f54709432568718725fbb4ba040 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { injectable } from "tsyringe";
import Properties from "../../shared/settings/Properties";
type Property = {
name: string;
type: "string" | "boolean" | "number";
};
@injectable()
export default class PropertyCompletionUseCase {
async getProperties(): Promise<Property[]> {
return Properties.defs().map((def) => ({
name: def.name,
type: def.type,
}));
}
}
|