Skip to content

public-demo-shared-types 0.1.44

Install from the command line:
Learn more about npm packages
$ npm install @knapsack-cloud/public-demo-shared-types@0.1.44
Install via package.json:
"@knapsack-cloud/public-demo-shared-types": "0.1.44"

About this version

This package exists for the soul purpose of creating a shared space for type definitions

Note: Temporary workaround until Knapsack is able to write the type definitions to the respective package dist directories

React

An example implementation below:

import { ButtonProps } from '@knapsack-cloud/workspace-shared-types';

export const Button: React.FC<ButtonProps> = ({
  disabled,
  size,
  style,
  children
}) => {
  return (
    <button disabled={ disabled } className={`ex-button ex-button--size-${size} ex-button--${style}`}>{ children }</button>
  );
};

Details


Assets

  • public-demo-shared-types-0.1.44.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0