Package Exports
- @girs/socialwebclient-0.25
- @girs/socialwebclient-0.25/ambient
- @girs/socialwebclient-0.25/import
- @girs/socialwebclient-0.25/socialwebclient-0.25
Readme
SocialWebClient-0.25
GJS TypeScript type definitions for SocialWebClient-0.25, generated from library version 0.25.0 using ts-for-gir v4.0.0.
Install
To use this type definitions, install them with NPM:
npm install @girs/socialwebclient-0.25Usage
You can import this package into your project like this:
import SocialWebClient from '@girs/socialwebclient-0.25';Ambient Modules
You can also use ambient modules to import this module like you would do this in JavaScript.
For this you need to include @girs/socialwebclient-0.25 or @girs/socialwebclient-0.25/ambient in your tsconfig or entry point Typescript file:
index.ts:
import '@girs/socialwebclient-0.25'tsconfig.json:
{
"compilerOptions": {
...
},
"include": ["@girs/socialwebclient-0.25"],
...
}Now you can import the ambient module with TypeScript support:
import SocialWebClient from 'gi://SocialWebClient?version=0.25';Global import
You can also import the module with Typescript support using the global imports.gi object of GJS.
For this you need to include @girs/socialwebclient-0.25 or @girs/socialwebclient-0.25/import in your tsconfig or entry point Typescript file:
index.ts:
import '@girs/socialwebclient-0.25'tsconfig.json:
{
"compilerOptions": {
...
},
"include": ["@girs/socialwebclient-0.25"],
...
}Now you have also type support for this, too:
const SocialWebClient = imports.gi.SocialWebClient;Bundle
Depending on your project configuration, it is recommended to use a bundler like esbuild. You can find examples using different bundlers here.
Other packages
All existing pre-generated packages can be found on gjsify/types.