I’m curious, did you actually run it through the tokenizer and see if it was less tokens vs uncompressed? I have seen a lot of people try these “compression” schemes and token usage can be higher.
Typescript (22 tokens):
export type IAssist = { id: string; prompt: string; promptResult: string[]; };
Story (26 tokens): IAssist contains: id which is a string; prompt which is a string; promptResult which is an array of strings.
Compressed (13 tokens): IAsst{id,prompt,promptR}
And again I'll just call this interesting, because is it really going to know promptResult is a string array in most cases? Definitely not unless it gets some help in the component description, maybe.