npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fish-desktop-types

v1.2.4

Published

TypeScript type definitions for Fish Desktop Widget components

Readme

@fish-desktop/types

npm version TypeScript

Complete TypeScript type definitions for Fish Desktop Widget components. Get full IntelliSense support and type checking for all Fish components in your TypeScript projects.

Features

Complete Type Coverage - All Fish Desktop Widget components
Auto-generated - Types are automatically generated from official API documentation
IDE IntelliSense - Full autocomplete and parameter hints
Type Safety - Catch errors at compile time
Zero Configuration - Just install and use

Installation

npm install @fish-desktop/types

Or with yarn:

yarn add @fish-desktop/types

Usage

Basic Setup

Simply import the types package in your TypeScript file:

import '@fish-desktop/types';

// Now you have full type support for all Fish components
$('.my-form').form({
  // IntelliSense will show all available options
  beforeSubmit: data => {
    // Full type checking for parameters
    console.log(data);
    return true;
  },
  clearForm: true,
  dataType: 'json',
});

$('.my-grid').grid({
  // Full type support for grid configuration
  colNames: ['ID', 'Name', 'Email'],
  colModel: [
    { name: 'id', index: 'id', width: 80 },
    { name: 'name', index: 'name', width: 200 },
    { name: 'email', index: 'email', width: 300 },
  ],
  datatype: 'json',
  height: 400,
});

Method Calls with Type Safety

// Form methods with full parameter type checking
$('.my-form').form('ajaxSubmit', eventData);
$('.my-form').form('getValue', true); // skipNullField parameter
$('.my-form').form('clear'); // No parameters needed

// Grid methods with full parameter type checking
$('.my-grid').grid('addRowData', 'new-row-id', rowData, 'last');
$('.my-grid').grid('setSelection', 'row-id', true);
$('.my-grid').grid('getRowData', 'row-id');

TypeScript Configuration

Make sure your tsconfig.json includes the types:

{
  "compilerOptions": {
    "types": ["@fish-desktop/types"],
    "moduleResolution": "node"
  }
}

Supported Components

| Component | Status | Methods | Events | Config Options | | --------- | ------ | ------- | ------ | -------------- | | Form | ✅ | 9 | 1 | 14 | | Grid | ✅ | 100+ | 20+ | 100+ |

Component Documentation

Form Component

The Form component provides AJAX form submission and validation capabilities.

Key Methods:

  • ajaxSubmit() - Submit form via AJAX
  • getValue() - Get form values as object
  • clear() - Clear all form fields
  • disable() / enable() - Control form state

Configuration Options:

  • beforeSubmit - Callback before form submission
  • success - Success callback
  • dataType - Response data type
  • validate - Validation settings

Grid Component

The Grid component provides powerful data grid functionality with sorting, paging, and editing.

Key Methods:

  • addRowData() - Add new row
  • delRowData() - Delete row
  • getRowData() - Get row data
  • setSelection() - Select row
  • reloadData() - Reload grid data

Configuration Options:

  • colModel - Column model definition
  • datatype - Data source type
  • pager - Pagination settings
  • sortname - Default sort column

Development

This package is auto-generated from Fish Desktop Widget API documentation. The types are kept up-to-date with the latest component versions.

Building from Source

# Clone the repository
git clone https://github.com/fish-desktop/types.git
cd types

# Install dependencies
npm install

# Generate types (if you have the source documentation)
npm run generate

Contributing

Found a bug or missing type definition? Please open an issue or submit a pull request.

License

MIT © Fish Desktop Widget Team

Changelog

1.0.0

  • Initial release
  • Form component type definitions
  • Grid component type definitions
  • Full method parameter type support
  • Event handler type definitions