# Slicemachine type generations for typescript projects

**URL:** <https://community.prismic.io/t/slicemachine-type-generations-for-typescript-projects/4658>\
**Category:** Developing with Prismic\
**Tags:** product-feature-idea, slice-machine\
**Created:** [March 24, 2021, 8:57am UTC](https://community.prismic.io/t/slicemachine-type-generations-for-typescript-projects/4658 "2021-03-24T08:57:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [March 25, 2021, 11:00am UTC](https://community.prismic.io/t/slicemachine-type-generations-for-typescript-projects/4658/3 "2021-03-25T11:00:23Z")

</div>

Hi Bob,

Are describing something similar to what's being discussed here?:

> [@Slice model typescript](https://community.prismic.io/t/slice-model-typescript/4291):
>
> Hello, I start to create a nuxt with slicemachine. I decided to use typescript on my project. I'm wondering about the .json model of a slice. I have a select type with options. I will have to test these entries in my component. My question Is it possible to have a typescript model that builds and exports a json to allow me to create a class that reflects this json and to have an enum structure that contains my options? The objective is to reduce string duplication in tests and to have only o…

---

_[View the full topic](https://community.prismic.io/t/slicemachine-type-generations-for-typescript-projects/4658)._
