Skip to content

feat(types): first example of typing#1

Open
buischiomassimo wants to merge 1 commit into
masterfrom
Types
Open

feat(types): first example of typing#1
buischiomassimo wants to merge 1 commit into
masterfrom
Types

Conversation

@buischiomassimo
Copy link
Copy Markdown
Collaborator

@buischiomassimo buischiomassimo commented Feb 8, 2022

Ciao @NicholasAntidormi ho buttato già la prima bozza per i tipi.
Ho usato le interfacce di typescript che mi permettono di renderli estensibili, e ho creato un type di base con header per tutte quelle informazioni di sistema e un body dove poter inserire i dati utili. Ogni tipo estende sempre il il type Body e il type Base.

Al momento ho creato un prodotto, un banner e un carosello.

Ora cerco di creare un'api per poter generare/gestire i tipi, proverò a fare entrambi gli esempi sia con una utils di function sia con delle classi.

Se teniamo buona questa struttura di dati, te già potresti riuscire a creare i componenti di front-end anche statici e all'ultimo proviamo a collegarli...

Fammi sapere cosa ne pensi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants