1 / 8
typescript経由 安定しない
interface ImageDescription { character: { hair: { color: string; length: string; style: string; }; eyes: { color: string; shape: string; expression: string; }; clothing: { upperBody: { item: string; color: string; style: string; details: string[]; }; lowerBody: { item: string; color: string; style: string; details: string[]; }; accessories: { type: string; color: string; position: string; details: string[]; }[]; }; pose: { description: string; armPosition: string[]; legPosition: string[]; }; expression: { facialExpression: string; emotionConveyed: string; }; }; background: string; overallMood: string; } const imageDescription: ImageDescription = { character: { hair: { color: \"brown\", length: \"long\", style: \"straight\" }, eyes: { color: \"purple\", shape: \"almond\", expression: \"intense\" }, clothing: { upperBody: { item: \"shirt\", color: \"white\", style: \"casual\", details: [\"red tie\", \"loose fit\"] }, lowerBody: { item: \"leggings\", color: \"brown\", style: \"tight\", details: [] }, accessories: [ { type: \"jacket\", color: \"khaki\", position: \"over shoulders\", details: [\"loose fit\", \"rolled up sleeves\"] } ] }, pose: { description: \"relaxed but alert\", armPosition: [\"one arm behind head\"], legPosition: [\"one leg bent\", \"one leg extended\"] }, expression: { facialExpression: \"slightly pouty\", emotionConveyed: \"determination\" } }, background: \"white\", overallMood: \"dynamic and confident\" };