Skip to content

Commit

Permalink
Adding type declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Nov 29, 2023
1 parent f0c18b4 commit 7f862d0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@formio/js",
"version": "5.0.0-rc.35",
"version": "5.0.0-rc.36",
"description": "JavaScript powered Forms with JSON Form Builder",
"main": "lib/cjs/index.js",
"exports": {
Expand Down Expand Up @@ -34,7 +34,10 @@
"dist",
"lib",
"types",
"index.d.ts"
"index.d.ts",
"embed.d.ts",
"sdk.d.ts",
"utils.d.ts"
],
"pre-commit": [
"lint"
Expand Down
2 changes: 1 addition & 1 deletion sdk.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './types/Formio';
export * from './types/formio';
2 changes: 1 addition & 1 deletion types/components/_classes/component/component.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Element } from '../../../element';
import { ValidateOptions } from '../../../Formio';
import { ValidateOptions } from '../../../formio';
import { ComponentSchema, ElementInfo, ExtendedComponentSchema } from './../../schema.d';

export class Component extends Element {
Expand Down
2 changes: 1 addition & 1 deletion types/components/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConditionalOptions, ValidateOptions } from '../Formio';
import { ConditionalOptions, ValidateOptions } from '../formio';

export interface ComponentSchema<T = any> {
/**
Expand Down
1 change: 1 addition & 0 deletions types/formio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface FormioOptions {
*/
project?: string;
useSessionToken?: boolean;
formOnly?: boolean;
}
/**
* The different path types for a project.
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export * from './components/components';
export * from './components/schema';
export * from './form';
export * from './formbuilder';
export * from './Formio';
export * from './formio';
export * from './templates';
export * from './displays';
export * from './widgets';
Expand Down
1 change: 1 addition & 0 deletions types/sdk.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './formio';

0 comments on commit 7f862d0

Please sign in to comment.