Templates: Export ButtonProps and HeaderProps interfaces

Export the ButtonProps and HeaderProps interfaces to make them accessible to avoid issues with Typescript relying on exported interfaces when declaration files should be created.
This commit is contained in:
Valentin Palkovic 2024-07-08 16:47:59 +02:00
parent d5b0fb74f6
commit fd4d89e6f3
8 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import './button.css';
interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/

View File

@ -7,7 +7,7 @@ type User = {
name: string;
};
interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;

View File

@ -1,7 +1,7 @@
import React from 'react';
import './button.css';
interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/

View File

@ -7,7 +7,7 @@ type User = {
name: string;
};
interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;

View File

@ -1,7 +1,7 @@
import React from 'react';
import './button.css';
interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/

View File

@ -7,7 +7,7 @@ type User = {
name: string;
};
interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;

View File

@ -1,7 +1,7 @@
import React from 'react';
import './button.css';
interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/

View File

@ -7,7 +7,7 @@ type User = {
name: string;
};
interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;