-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add types - Fix #34 - Remove the `register` method in favor of https://github.com/riot/register
- Loading branch information
1 parent
91792a4
commit ec03ebf
Showing
13 changed files
with
2,889 additions
and
2,524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
extends: eslint-config-riot | ||
|
||
parserOptions: | ||
ecmaVersion: 2018 | ||
ecmaVersion: 2021 | ||
sourceType: 'module' | ||
|
||
globals: | ||
chai: true | ||
chai: true | ||
globalThis: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: [ main, dev ] | ||
pull_request: | ||
branches: [ main, dev ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 15.x, 16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Local Unit Test ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm i | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { RiotComponentShell } from 'riot'; | ||
|
||
export interface RenderingFragments { | ||
html: string | ||
css: string | ||
} | ||
|
||
export interface domGlobals { | ||
create: () => void | ||
clear: () => void | ||
} | ||
|
||
export const asyncRenderTimeout: number | ||
|
||
export function renderAsync<Props extends unknown> (componentName: string, componentShell: RiotComponentShell<Props>, props?: Props): Promise<string> | ||
export function renderAsyncFragments<Props extends unknown> (componentName: string, componentShell: RiotComponentShell<Props>, props?: Props): Promise<RenderingFragments> | ||
export function fragments<Props extends unknown> (componentName: string, componentShell: RiotComponentShell<Props>, props?: Props): RenderingFragments | ||
export function render<Props extends unknown> (componentName: string, componentShell: RiotComponentShell<Props>, props?: Props): string | ||
|
||
export default render |
Oops, something went wrong.