File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
docs/src/content/docs/guides Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,25 @@ module.exports = require('flarum-webpack-config')({
1414});
1515```
1616
17+ For typings, add the extension to your ` tsconfig.json ` :
18+
19+ ``` json
20+ {
21+ "compilerOptions" : {
22+ "paths" : {
23+ "@ordinaryjellyfish-sentra" : [" ../vendor/ordinaryjellyfish/sentra/js/dist-typings/admin/index.d.ts" ]
24+ }
25+ }
26+ }
27+ ```
28+
1729Then you'll need to extend the settings page:
1830
1931``` ts
2032// src/admin/index.ts
2133import app from ' flarum/admin/app' ;
2234import { extend } from ' flarum/common/extend' ;
23- // Your IDE may throw an error with this import, this can be safely ignored
35+ // If your IDE throws an error with this import, make sure you added the Sentra typings to your tsconfig
2436import { SettingsPage } from ' @ordinaryjellyfish-sentra' ;
2537
2638app .initializers .add (' your/extension' , () => {
You can’t perform that action at this time.
0 commit comments