Skip to content

Is this project going to be typescript only? #361

Answered by endigo9740
planetaska asked this question in Q&A
Discussion options

You must be logged in to vote

@planetaska I don't believe any part of the project has a hard requirement for Typescript. We just tend to show our examples using it for two reasons:

  1. We build Skeleton using Typescript, so in most cases it's the most natural way to document things
  2. It's more useful to show examples with Typescript types, which can be removed, rather than without and leave folks guessing at how it should be utilized.

Take Conic Gradients for example:
https://skeleton.brainandbonesllc.com/components/conic-gradients

With a Typescript type added:

const conicStops: ConicStop[] = [
	{ label: 'Primary', color: 'rgb(var(--color-primary-500))', start: 0, end: 33 },
	{ label: 'Acccent', color: 'rgb(var(--color-wa…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@planetaska
Comment options

@endigo9740
Comment options

@endigo9740
Comment options

@planetaska
Comment options

@endigo9740
Comment options

Answer selected by planetaska
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants