Fix a number of typescript issues (#32459)
Fixes 69 typescript errors found in the `admin` and `markup` folders. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
f888e45432
commit
f35e2b0cd1
14 changed files with 109 additions and 113 deletions
|
@ -1,13 +1,13 @@
|
|||
import {svg} from '../svg.ts';
|
||||
|
||||
export function makeCodeCopyButton() {
|
||||
export function makeCodeCopyButton(): HTMLButtonElement {
|
||||
const button = document.createElement('button');
|
||||
button.classList.add('code-copy', 'ui', 'button');
|
||||
button.innerHTML = svg('octicon-copy');
|
||||
return button;
|
||||
}
|
||||
|
||||
export function renderCodeCopy() {
|
||||
export function renderCodeCopy(): void {
|
||||
const els = document.querySelectorAll('.markup .code-block code');
|
||||
if (!els.length) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue