Skip to content

Commit 2007191

Browse files
Add interfaces to docs
1 parent 8c09ebb commit 2007191

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ docs/react-sdk/
2424
docs/vue-sdk/
2525
docs/web-sdk/
2626
docs/tanstack-react-query-sdk
27+
docs/node-sdk
2728

2829
.env

docs/docusaurus.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { themes as prismThemes } from 'prism-react-renderer';
2-
import type { TypeDocOptionMap } from 'typedoc';
3-
import type { Config } from '@docusaurus/types';
41
import type * as Preset from '@docusaurus/preset-classic';
2+
import type { Config } from '@docusaurus/types';
53
import type { PluginOptions } from 'docusaurus-plugin-typedoc';
6-
import { DOC_FOLDER, packageMap } from './utils/packageMap';
74
import 'dotenv/config';
5+
import { themes as prismThemes } from 'prism-react-renderer';
6+
import type { TypeDocOptionMap } from 'typedoc';
7+
import { DOC_FOLDER, packageMap } from './utils/packageMap';
88

99
const PROJECT_NAME = process.env.GH_PROJECT_NAME;
1010

@@ -26,7 +26,7 @@ const plugins = Object.entries(packageMap).map(([id, config]) => [
2626
expandObjects: true,
2727
useCodeBlocks: true,
2828
typeDeclarationFormat: 'table',
29-
membersWithOwnFile: ['Class', 'Enum', 'Function'],
29+
membersWithOwnFile: ['Class', 'Enum', 'Function', 'Interface'],
3030
textContentMappings: {
3131
'title.memberPage': '{name}'
3232
}
@@ -155,8 +155,8 @@ const config: Config = {
155155
darkTheme: prismThemes.dracula
156156
},
157157
future: {
158-
experimental_faster: true,
159-
},
158+
experimental_faster: true
159+
}
160160
} satisfies Preset.ThemeConfig
161161
};
162162

packages/common/src/client/AbstractPowerSyncDatabase.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,10 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
184184

185185
protected runExclusiveMutex: Mutex;
186186

187-
protected triggerManager: TriggerManagerImpl;
188-
189-
get triggers(): TriggerManager {
190-
return this.triggerManager;
191-
}
187+
/**
188+
* Allows creating SQLite triggers which can be used to track various operations on SQLite tables.
189+
*/
190+
readonly triggers: TriggerManager;
192191

193192
constructor(options: PowerSyncDatabaseOptionsWithDBAdapter);
194193
constructor(options: PowerSyncDatabaseOptionsWithOpenFactory);
@@ -251,7 +250,7 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
251250

252251
this._isReadyPromise = this.initialize();
253252

254-
this.triggerManager = new TriggerManagerImpl({
253+
this.triggers = new TriggerManagerImpl({
255254
db: this,
256255
schema: this.schema
257256
});

0 commit comments

Comments
 (0)