Skip to content

Commit

Permalink
Re-export definitions from @seatsio/seatsio-types, to make eslint h…
Browse files Browse the repository at this point in the history
…appy (#158)
  • Loading branch information
mroloux authored Dec 14, 2023
1 parent ba8d085 commit 626825a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ The chart uses 100% of the width and height of the DOM element (e.g. a div) in w

### TypeScript

The `@seatsio/seatsio-types` package (which comes installed with `@seatsio/seatsio-react`) provides type definitions for the properties of the `SeatsioSeatingChart`:
`@seatsio/seatsio-react` exposes type definitions from `@seatsio/seatsio-types`. You can import them as follows:

```jsx
import { Pricing } from "@seatsio/seatsio-types";
import { SeatsioSeatingChart, Pricing } from "@seatsio/seatsio-react";

const pricing: Pricing = [
{ category: '1', price: 30},
Expand Down
3 changes: 1 addition & 2 deletions playground/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SeatsioSeatingChart } from '@seatsio/seatsio-react';
import { Region } from '@seatsio/seatsio-types';
import { SeatsioSeatingChart, Region } from '@seatsio/seatsio-react';
import React, { useState } from 'react';
import './App.css';

Expand Down
1 change: 1 addition & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { default as SeatsioDesigner } from './SeatsioDesigner'
export { default as SeatsioEventManager } from './SeatsioEventManager'
export { default as SeatsioSeatingChart } from './SeatsioSeatingChart'
export { isBooth, isGeneralAdmission, isSeat, isSection, isTable } from './util'
export type * from '@seatsio/seatsio-types';

0 comments on commit 626825a

Please sign in to comment.